diff options
| author | kerzum <[email protected]> | 2022-02-10 16:49:33 +0300 |
|---|---|---|
| committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:33 +0300 |
| commit | 47a7e7b29636bfb2deb1df5f92363b3c75229c95 (patch) | |
| tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/xml/document/node-attr.h | |
| parent | 9a7232babfd763ccfe827bc70e82e0f50cfd8276 (diff) | |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/xml/document/node-attr.h')
| -rw-r--r-- | library/cpp/xml/document/node-attr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/cpp/xml/document/node-attr.h b/library/cpp/xml/document/node-attr.h index 50641cac557..6e74403943c 100644 --- a/library/cpp/xml/document/node-attr.h +++ b/library/cpp/xml/document/node-attr.h @@ -145,12 +145,12 @@ namespace NXml { } inline void TNode::DelAttr(TZtStringBuf name) { - if (xmlUnsetProp(NodePointer, XMLCHAR(name.c_str())) < 0) + if (xmlUnsetProp(NodePointer, XMLCHAR(name.c_str())) < 0) THROW(XmlException, "Can't delete node attribute <" << name << ">"); - } - + } + template <class T> typename std::enable_if<!std::is_convertible_v<T, TZtStringBuf>, TNode>::type TNode::AddChild(TZtStringBuf name, const T& value) { |
