diff options
author | finder <finder@yandex-team.ru> | 2022-02-10 16:49:24 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:24 +0300 |
commit | abbbaf4075fbaa0ff4ce9faa1188089466a21dbe (patch) | |
tree | 4beaffe75727862ab08110c7ce520dc7aa49ff30 /library/cpp/xml/document/libxml-guards.h | |
parent | 46f4bc6ab513a0ed1407f9095284a00e20f05adc (diff) | |
download | ydb-abbbaf4075fbaa0ff4ce9faa1188089466a21dbe.tar.gz |
Restoring authorship annotation for <finder@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/xml/document/libxml-guards.h')
-rw-r--r-- | library/cpp/xml/document/libxml-guards.h | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/library/cpp/xml/document/libxml-guards.h b/library/cpp/xml/document/libxml-guards.h index 4188cecff1..4028c53e9f 100644 --- a/library/cpp/xml/document/libxml-guards.h +++ b/library/cpp/xml/document/libxml-guards.h @@ -1,50 +1,50 @@ -#pragma once +#pragma once #include <library/cpp/xml/init/ptr.h> -#include <util/generic/ptr.h> +#include <util/generic/ptr.h> #include <libxml/xmlstring.h> #include <libxml/tree.h> #include <libxml/xpath.h> #include <libxml/uri.h> #include <libxml/xmlsave.h> - -namespace NXml { - namespace NDetail { - struct TSignedCharPtrTraits { - static void Destroy(char* handle) { - xmlFree(handle); - } - }; - - struct TCharPtrTraits { - static void Destroy(xmlChar* handle) { - xmlFree(handle); - } - }; - - struct TOutputBufferPtrTraits { - static void Destroy(xmlOutputBufferPtr handle) { - xmlOutputBufferClose(handle); - } - }; - + +namespace NXml { + namespace NDetail { + struct TSignedCharPtrTraits { + static void Destroy(char* handle) { + xmlFree(handle); + } + }; + + struct TCharPtrTraits { + static void Destroy(xmlChar* handle) { + xmlFree(handle); + } + }; + + struct TOutputBufferPtrTraits { + static void Destroy(xmlOutputBufferPtr handle) { + xmlOutputBufferClose(handle); + } + }; + struct TSaveCtxtPtrTraits { static void Destroy(xmlSaveCtxtPtr handle) { xmlSaveClose(handle); } }; - } - + } + typedef TxmlXPathContextPtr TXPathContextPtr; typedef TxmlXPathObjectPtr TXPathObjectPtr; - typedef TAutoPtr<char, NDetail::TSignedCharPtrTraits> TSignedCharPtr; - typedef TAutoPtr<xmlChar, NDetail::TCharPtrTraits> TCharPtr; + typedef TAutoPtr<char, NDetail::TSignedCharPtrTraits> TSignedCharPtr; + typedef TAutoPtr<xmlChar, NDetail::TCharPtrTraits> TCharPtr; typedef TxmlDocHolder TDocHolder; typedef TxmlURIPtr TURIPtr; typedef TxmlNodePtr TNodePtr; - typedef TAutoPtr<xmlOutputBuffer, NDetail::TOutputBufferPtrTraits> TOutputBufferPtr; + typedef TAutoPtr<xmlOutputBuffer, NDetail::TOutputBufferPtrTraits> TOutputBufferPtr; typedef TxmlParserCtxtPtr TParserCtxtPtr; typedef TAutoPtr<xmlSaveCtxt, NDetail::TSaveCtxtPtrTraits> TSaveCtxtPtr; - + } |