aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authori-sokolov <i-sokolov@yandex-team.ru>2022-02-10 16:46:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:30 +0300
commit12c01f0701d50bc3f68eb36add9bff803ca94f35 (patch)
tree4b775523c0da7b1613a0407a30e4998a436911cd
parent4b839d0704ee9be1dabb0310a1f03af24963637b (diff)
downloadydb-12c01f0701d50bc3f68eb36add9bff803ca94f35.tar.gz
Restoring authorship annotation for <i-sokolov@yandex-team.ru>. Commit 1 of 2.
-rw-r--r--contrib/libs/ya.make2
-rw-r--r--contrib/restricted/boost/boost/asio/detail/timer_queue.hpp4
-rw-r--r--library/cpp/xml/document/node-attr.h8
-rw-r--r--library/cpp/xml/document/xml-document-decl.h4
-rw-r--r--library/cpp/xml/document/xml-document.cpp18
-rw-r--r--library/cpp/xml/document/xml-document_ut.cpp24
6 files changed, 30 insertions, 30 deletions
diff --git a/contrib/libs/ya.make b/contrib/libs/ya.make
index 9c4640fdcf..f9b365a359 100644
--- a/contrib/libs/ya.make
+++ b/contrib/libs/ya.make
@@ -151,7 +151,7 @@ RECURSE(
libfuzzer12
libgeotiff
libgit2
- libgraphqlparser
+ libgraphqlparser
libheif
libical
libiconv
diff --git a/contrib/restricted/boost/boost/asio/detail/timer_queue.hpp b/contrib/restricted/boost/boost/asio/detail/timer_queue.hpp
index 3b2bcff774..ef63815430 100644
--- a/contrib/restricted/boost/boost/asio/detail/timer_queue.hpp
+++ b/contrib/restricted/boost/boost/asio/detail/timer_queue.hpp
@@ -267,13 +267,13 @@ private:
{
if (index == heap_.size() - 1)
{
- timer.heap_index_ = (std::numeric_limits<std::size_t>::max)();
+ timer.heap_index_ = (std::numeric_limits<std::size_t>::max)();
heap_.pop_back();
}
else
{
swap_heap(index, heap_.size() - 1);
- timer.heap_index_ = (std::numeric_limits<std::size_t>::max)();
+ timer.heap_index_ = (std::numeric_limits<std::size_t>::max)();
heap_.pop_back();
if (index > 0 && Time_Traits::less_than(
heap_[index].time_, heap_[(index - 1) / 2].time_))
diff --git a/library/cpp/xml/document/node-attr.h b/library/cpp/xml/document/node-attr.h
index 6e74403943..3b757796bd 100644
--- a/library/cpp/xml/document/node-attr.h
+++ b/library/cpp/xml/document/node-attr.h
@@ -136,14 +136,14 @@ namespace NXml {
inline void TNode::SetAttr(TZtStringBuf name) {
xmlAttr* attr = xmlSetProp(NodePointer, XMLCHAR(name.c_str()), nullptr);
-
+
if (!attr) {
THROW(XmlException, "Can't set node empty attribute <"
<< name
<< ">");
- }
- }
-
+ }
+ }
+
inline void TNode::DelAttr(TZtStringBuf name) {
if (xmlUnsetProp(NodePointer, XMLCHAR(name.c_str())) < 0)
THROW(XmlException, "Can't delete node attribute <"
diff --git a/library/cpp/xml/document/xml-document-decl.h b/library/cpp/xml/document/xml-document-decl.h
index bfda1fb7e6..3ff972208c 100644
--- a/library/cpp/xml/document/xml-document-decl.h
+++ b/library/cpp/xml/document/xml-document-decl.h
@@ -388,7 +388,7 @@ namespace NXml {
SetAttr(TZtStringBuf name, const T& value);
void SetAttr(TZtStringBuf name, TZtStringBuf value);
-
+
void SetAttr(TZtStringBuf name);
/**
@@ -469,7 +469,7 @@ namespace NXml {
void AttrInternal(TCharPtr& value, T& res, TStringBuf errContext) const;
void SaveInternal(IOutputStream& stream, TZtStringBuf enc, int options) const;
-
+
xmlNode* NodePointer;
xmlDoc* DocPointer;
};
diff --git a/library/cpp/xml/document/xml-document.cpp b/library/cpp/xml/document/xml-document.cpp
index 18a554d732..562269473d 100644
--- a/library/cpp/xml/document/xml-document.cpp
+++ b/library/cpp/xml/document/xml-document.cpp
@@ -316,21 +316,21 @@ namespace NXml {
void TNode::SaveInternal(IOutputStream& stream, TZtStringBuf enc, int options) const {
const char* encoding = enc.size() ? enc.data() : "utf-8";
TSaveCtxtPtr ctx(xmlSaveToIO(XmlWriteToOstream, /* close */ nullptr, &stream,
- encoding, options));
+ encoding, options));
if (xmlSaveTree(ctx.Get(), (xmlNode*)GetPtr()) < 0)
THROW(XmlException, "Failed saving node to stream");
}
void TNode::Save(IOutputStream& stream, TZtStringBuf enc, bool shouldFormat) const {
- SaveInternal(stream, enc, shouldFormat ? XML_SAVE_FORMAT : 0);
- }
-
+ SaveInternal(stream, enc, shouldFormat ? XML_SAVE_FORMAT : 0);
+ }
+
void TNode::SaveAsHtml(IOutputStream& stream, TZtStringBuf enc, bool shouldFormat) const {
- int options = XML_SAVE_AS_HTML;
- options |= shouldFormat ? XML_SAVE_FORMAT : 0;
- SaveInternal(stream, enc, options);
- }
-
+ int options = XML_SAVE_AS_HTML;
+ options |= shouldFormat ? XML_SAVE_FORMAT : 0;
+ SaveInternal(stream, enc, options);
+ }
+
TConstNodes::TConstNodes(const TConstNodes& nodes)
: SizeValue(nodes.Size())
, Doc(nodes.Doc)
diff --git a/library/cpp/xml/document/xml-document_ut.cpp b/library/cpp/xml/document/xml-document_ut.cpp
index 9f537b75c4..1dc6adf4e9 100644
--- a/library/cpp/xml/document/xml-document_ut.cpp
+++ b/library/cpp/xml/document/xml-document_ut.cpp
@@ -278,19 +278,19 @@ Y_UNIT_TEST_SUITE(TestXmlDocument) {
UNIT_ASSERT_EQUAL(ys.Size(), 1);
UNIT_ASSERT_EQUAL(ys[0].Value<int>(), 20);
}
-
+
Y_UNIT_TEST(Html) {
- using namespace NXml;
-
- TDocument htmlChunk("video", TDocument::RootName);
- TNode videoNode = htmlChunk.Root();
-
- videoNode.SetAttr("controls");
-
- TStringStream ss;
- videoNode.SaveAsHtml(ss);
- UNIT_ASSERT_EQUAL(ss.Str(), "<video controls></video>");
- }
+ using namespace NXml;
+
+ TDocument htmlChunk("video", TDocument::RootName);
+ TNode videoNode = htmlChunk.Root();
+
+ videoNode.SetAttr("controls");
+
+ TStringStream ss;
+ videoNode.SaveAsHtml(ss);
+ UNIT_ASSERT_EQUAL(ss.Str(), "<video controls></video>");
+ }
Y_UNIT_TEST(Move) {
using namespace NXml;