diff options
author | i-sokolov <i-sokolov@yandex-team.ru> | 2022-02-10 16:46:30 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:30 +0300 |
commit | 12c01f0701d50bc3f68eb36add9bff803ca94f35 (patch) | |
tree | 4b775523c0da7b1613a0407a30e4998a436911cd /library/cpp/xml/document/node-attr.h | |
parent | 4b839d0704ee9be1dabb0310a1f03af24963637b (diff) | |
download | ydb-12c01f0701d50bc3f68eb36add9bff803ca94f35.tar.gz |
Restoring authorship annotation for <i-sokolov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/xml/document/node-attr.h')
-rw-r--r-- | library/cpp/xml/document/node-attr.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 <" |