diff --git a/exml/Attribute.h b/exml/Attribute.h index b372c76..a8cf807 100644 --- a/exml/Attribute.h +++ b/exml/Attribute.h @@ -5,9 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __ETK_XML_ATTRIBUTE_H__ -#define __ETK_XML_ATTRIBUTE_H__ +#pragma once #include #include @@ -63,8 +61,5 @@ namespace exml { }; virtual void clear(); }; -}; - - -#endif +} diff --git a/exml/AttributeList.h b/exml/AttributeList.h index c376a21..7d874e0 100644 --- a/exml/AttributeList.h +++ b/exml/AttributeList.h @@ -5,9 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __ETK_XML_ATTRIBUTE_LIST_H__ -#define __ETK_XML_ATTRIBUTE_LIST_H__ +#pragma once #include #include @@ -86,8 +84,5 @@ namespace exml { bool iGenerate(std::string& _data, int32_t _indent) const; virtual void clear(); }; -}; - - -#endif +} diff --git a/exml/Comment.h b/exml/Comment.h index 8206628..1d9716b 100644 --- a/exml/Comment.h +++ b/exml/Comment.h @@ -5,9 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __ETK_XML_COMMENT_H__ -#define __ETK_XML_COMMENT_H__ +#pragma once #include #include @@ -46,8 +44,5 @@ namespace exml { return std::static_pointer_cast(shared_from_this()); }; }; -}; - - -#endif +} diff --git a/exml/Declaration.h b/exml/Declaration.h index a8eb6b7..35df242 100644 --- a/exml/Declaration.h +++ b/exml/Declaration.h @@ -5,9 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __ETK_XML_DECLARATION_H__ -#define __ETK_XML_DECLARATION_H__ +#pragma once #include @@ -62,8 +60,5 @@ namespace exml { */ virtual ~DeclarationXML() { }; }; -}; - - -#endif +} diff --git a/exml/Document.h b/exml/Document.h index c835637..d168594 100644 --- a/exml/Document.h +++ b/exml/Document.h @@ -5,9 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __ETK_XML_DOCUMENT_H__ -#define __ETK_XML_DOCUMENT_H__ +#pragma once #include #include @@ -117,6 +115,3 @@ namespace exml { //__LINE__, __class__, __func__ -#endif - - diff --git a/exml/Element.h b/exml/Element.h index 40487cd..aee2025 100644 --- a/exml/Element.h +++ b/exml/Element.h @@ -5,9 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __ETK_XML_ELEMENT_H__ -#define __ETK_XML_ELEMENT_H__ +#pragma once #include #include @@ -99,8 +97,5 @@ namespace exml { }; virtual void clear(); }; -}; - - -#endif +} diff --git a/exml/Node.h b/exml/Node.h index 2140ee9..817b284 100644 --- a/exml/Node.h +++ b/exml/Node.h @@ -5,9 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __ETK_XML_NODE_H__ -#define __ETK_XML_NODE_H__ +#pragma once #include #include @@ -328,7 +326,4 @@ namespace exml { */ virtual void clear(); }; -}; - -#endif - +} diff --git a/exml/Text.h b/exml/Text.h index baf7afd..51ebf7b 100644 --- a/exml/Text.h +++ b/exml/Text.h @@ -5,9 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __ETK_XML_TEXT_H__ -#define __ETK_XML_TEXT_H__ +#pragma once #include #include @@ -65,8 +63,5 @@ namespace exml { virtual bool iParse(const std::string& _data, int32_t& _pos, bool _caseSensitive, exml::filePos& _filePos, exml::Document& _doc); virtual bool iGenerate(std::string& _data, int32_t _indent) const; }; -}; - - -#endif +} diff --git a/exml/debug.h b/exml/debug.h index 4ba1e70..d23947a 100644 --- a/exml/debug.h +++ b/exml/debug.h @@ -5,9 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __EXML_DEBUG_H__ -#define __EXML_DEBUG_H__ +#pragma once #include @@ -39,5 +37,4 @@ namespace exml { } \ } while (0) -#endif diff --git a/exml/exml.h b/exml/exml.h index 867d206..e27a30c 100644 --- a/exml/exml.h +++ b/exml/exml.h @@ -5,12 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - -#ifndef __ETK_XML_H__ -#define __ETK_XML_H__ +#pragma once #include - -#endif - diff --git a/test/exmlTestAll.h b/test/exmlTestAll.h index cb27652..81d0fee 100644 --- a/test/exmlTestAll.h +++ b/test/exmlTestAll.h @@ -5,10 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - - -#ifndef __EXML_TEST_ALL_H__ -#define __EXML_TEST_ALL_H__ +#pragma once #include "exmlTestCommon.h" #include @@ -42,4 +39,3 @@ TEST(TestAll, testError) { } -#endif \ No newline at end of file diff --git a/test/exmlTestAttribute.h b/test/exmlTestAttribute.h index dc583f0..027c19e 100644 --- a/test/exmlTestAttribute.h +++ b/test/exmlTestAttribute.h @@ -5,10 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - - -#ifndef __EXML_TEST_ATTRIBUTE_H__ -#define __EXML_TEST_ATTRIBUTE_H__ +#pragma once #include "exmlTestCommon.h" #include @@ -59,5 +56,3 @@ TEST(TestAttribute, testEmptyAttributeNoQuote) { "\n", -1); } - -#endif diff --git a/test/exmlTestComment.h b/test/exmlTestComment.h index 4ffe789..39e9235 100644 --- a/test/exmlTestComment.h +++ b/test/exmlTestComment.h @@ -5,10 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - - -#ifndef __EXML_TEST_COMMENT_H__ -#define __EXML_TEST_COMMENT_H__ +#pragma once #include "exmlTestCommon.h" #include @@ -40,5 +37,3 @@ TEST(TestComment, testAll) { "\n", -1); } - -#endif diff --git a/test/exmlTestCommon.h b/test/exmlTestCommon.h index b27a757..59e2a74 100644 --- a/test/exmlTestCommon.h +++ b/test/exmlTestCommon.h @@ -5,10 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - - -#ifndef __EXML_TEST_COMMON_H__ -#define __EXML_TEST_COMMON_H__ +#pragma once #include #include @@ -41,4 +38,3 @@ static void exmlLocalTest(const std::string& _ref, const std::string& _input, in } } -#endif \ No newline at end of file diff --git a/test/exmlTestDeclaration.h b/test/exmlTestDeclaration.h index 5a3b3d8..33204de 100644 --- a/test/exmlTestDeclaration.h +++ b/test/exmlTestDeclaration.h @@ -5,10 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - - -#ifndef __EXML_TEST_DECLARATION_H__ -#define __EXML_TEST_DECLARATION_H__ +#pragma once #include "exmlTestCommon.h" #include @@ -39,4 +36,3 @@ TEST(TestDeclaration, testAll) { exmlLocalTest("\n", "\n", -1); } -#endif diff --git a/test/exmlTestElement.h b/test/exmlTestElement.h index 3fcea66..c286ac8 100644 --- a/test/exmlTestElement.h +++ b/test/exmlTestElement.h @@ -5,10 +5,7 @@ * * @license APACHE v2.0 (see license file) */ - - -#ifndef __EXML_TEST_ELEMENT_H__ -#define __EXML_TEST_ELEMENT_H__ +#pragma once #include "exmlTestCommon.h" #include @@ -57,4 +54,3 @@ TEST(TestElement, testBase3) { exmlLocalTest("\n", "\n\n", 1); } -#endif