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 | 7597bb840e100a7acf04459a48562c75b439f467 (patch) | |
tree | 1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /library/cpp/xml/document/node-attr.h | |
parent | 12c01f0701d50bc3f68eb36add9bff803ca94f35 (diff) | |
download | ydb-7597bb840e100a7acf04459a48562c75b439f467.tar.gz |
Restoring authorship annotation for <i-sokolov@yandex-team.ru>. Commit 2 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 3b757796bd..6e74403943 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 <" |