aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/xml/document/libxml-guards.h
diff options
context:
space:
mode:
authorfinder <finder@yandex-team.ru>2022-02-10 16:49:24 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:49:24 +0300
commit2ab6bab688484680d3ebc5c4a7e9cd3ff04fda04 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/xml/document/libxml-guards.h
parentabbbaf4075fbaa0ff4ce9faa1188089466a21dbe (diff)
downloadydb-2ab6bab688484680d3ebc5c4a7e9cd3ff04fda04.tar.gz
Restoring authorship annotation for <finder@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/xml/document/libxml-guards.h')
-rw-r--r--library/cpp/xml/document/libxml-guards.h58
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 4028c53e9f..4188cecff1 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;
-
+
}