summaryrefslogtreecommitdiff
path: root/unoxml/source/dom
diff options
context:
space:
mode:
authorVincent LE GARREC <libreoffice@le-garrec.fr>2021-03-06 08:28:23 +0100
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2021-03-23 10:54:09 +0100
commit1c0c2bb7920f5da7562a053019514d1e4cbdf1f6 (patch)
treed4dd124d4dbc0b12703b12d4eb945d11c063c297 /unoxml/source/dom
parent039e90ec011157c9e851221a53ec62d33acb71d1 (diff)
tdf#124176 Use pragma once in u*
ucb, uno*, uui Change-Id: Ic4b6d541eb0df8bf7bceddf178ebb5177ad2b87b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112046 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'unoxml/source/dom')
-rw-r--r--unoxml/source/dom/attr.hxx5
-rw-r--r--unoxml/source/dom/attributesmap.hxx5
-rw-r--r--unoxml/source/dom/cdatasection.hxx5
-rw-r--r--unoxml/source/dom/characterdata.hxx5
-rw-r--r--unoxml/source/dom/childlist.hxx5
-rw-r--r--unoxml/source/dom/comment.hxx5
-rw-r--r--unoxml/source/dom/document.hxx5
-rw-r--r--unoxml/source/dom/documentbuilder.hxx5
-rw-r--r--unoxml/source/dom/documentfragment.hxx4
-rw-r--r--unoxml/source/dom/documenttype.hxx4
-rw-r--r--unoxml/source/dom/domimplementation.hxx4
-rw-r--r--unoxml/source/dom/element.hxx5
-rw-r--r--unoxml/source/dom/elementlist.hxx5
-rw-r--r--unoxml/source/dom/entitiesmap.hxx5
-rw-r--r--unoxml/source/dom/entity.hxx5
-rw-r--r--unoxml/source/dom/entityreference.hxx4
-rw-r--r--unoxml/source/dom/notation.hxx5
-rw-r--r--unoxml/source/dom/notationsmap.hxx5
-rw-r--r--unoxml/source/dom/processinginstruction.hxx5
-rw-r--r--unoxml/source/dom/saxbuilder.hxx5
-rw-r--r--unoxml/source/dom/text.hxx4
21 files changed, 21 insertions, 79 deletions
diff --git a/unoxml/source/dom/attr.hxx b/unoxml/source/dom/attr.hxx
index f2091328da72..30c0aa25bb34 100644
--- a/unoxml/source/dom/attr.hxx
+++ b/unoxml/source/dom/attr.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_ATTR_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_ATTR_HXX
+#pragma once
#include <memory>
@@ -175,6 +174,4 @@ namespace DOM
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/attributesmap.hxx b/unoxml/source/dom/attributesmap.hxx
index 4a1f485b69f6..55f4c6795194 100644
--- a/unoxml/source/dom/attributesmap.hxx
+++ b/unoxml/source/dom/attributesmap.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_ATTRIBUTESMAP_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_ATTRIBUTESMAP_HXX
+#pragma once
#include <sal/types.h>
#include <rtl/ref.hxx>
@@ -93,6 +92,4 @@ namespace DOM
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/cdatasection.hxx b/unoxml/source/dom/cdatasection.hxx
index 569d7c7a8359..0cd181ce6f18 100644
--- a/unoxml/source/dom/cdatasection.hxx
+++ b/unoxml/source/dom/cdatasection.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_CDATASECTION_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_CDATASECTION_HXX
+#pragma once
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/xml/dom/XCDATASection.hpp>
@@ -187,6 +186,4 @@ namespace DOM
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/characterdata.hxx b/unoxml/source/dom/characterdata.hxx
index 8a3179d3de77..7728f65ef135 100644
--- a/unoxml/source/dom/characterdata.hxx
+++ b/unoxml/source/dom/characterdata.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_CHARACTERDATA_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_CHARACTERDATA_HXX
+#pragma once
#include <libxml/tree.h>
@@ -199,6 +198,4 @@ namespace DOM
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/childlist.hxx b/unoxml/source/dom/childlist.hxx
index c9a2697a4464..091a8e450837 100644
--- a/unoxml/source/dom/childlist.hxx
+++ b/unoxml/source/dom/childlist.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_CHILDLIST_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_CHILDLIST_HXX
+#pragma once
#include <sal/types.h>
#include <rtl/ref.hxx>
@@ -57,6 +56,4 @@ namespace DOM
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/comment.hxx b/unoxml/source/dom/comment.hxx
index 66fc8cd2795f..94b8f1f58038 100644
--- a/unoxml/source/dom/comment.hxx
+++ b/unoxml/source/dom/comment.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_COMMENT_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_COMMENT_HXX
+#pragma once
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/xml/dom/XComment.hpp>
@@ -181,6 +180,4 @@ namespace DOM
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/document.hxx b/unoxml/source/dom/document.hxx
index 8666d2185f0d..a26da7fcd169 100644
--- a/unoxml/source/dom/document.hxx
+++ b/unoxml/source/dom/document.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_DOCUMENT_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_DOCUMENT_HXX
+#pragma once
#include <set>
#include <memory>
@@ -335,6 +334,4 @@ namespace DOM
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/documentbuilder.hxx b/unoxml/source/dom/documentbuilder.hxx
index 4c9af65b2b8a..40edc4525979 100644
--- a/unoxml/source/dom/documentbuilder.hxx
+++ b/unoxml/source/dom/documentbuilder.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_DOCUMENTBUILDER_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_DOCUMENTBUILDER_HXX
+#pragma once
#include <sal/types.h>
@@ -126,6 +125,4 @@ namespace DOM
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/documentfragment.hxx b/unoxml/source/dom/documentfragment.hxx
index ba82735d36e7..7bb3c187b236 100644
--- a/unoxml/source/dom/documentfragment.hxx
+++ b/unoxml/source/dom/documentfragment.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_DOCUMENTFRAGMENT_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_DOCUMENTFRAGMENT_HXX
+#pragma once
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/xml/dom/XDocumentFragment.hpp>
@@ -146,6 +145,5 @@ namespace DOM
};
}
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/documenttype.hxx b/unoxml/source/dom/documenttype.hxx
index 964bab03804f..48f857bf7ee3 100644
--- a/unoxml/source/dom/documenttype.hxx
+++ b/unoxml/source/dom/documenttype.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_DOCUMENTTYPE_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_DOCUMENTTYPE_HXX
+#pragma once
#include <libxml/tree.h>
@@ -183,6 +182,5 @@ namespace DOM
};
}
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/domimplementation.hxx b/unoxml/source/dom/domimplementation.hxx
index 095587409235..e2f2509445bc 100644
--- a/unoxml/source/dom/domimplementation.hxx
+++ b/unoxml/source/dom/domimplementation.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_DOMIMPLEMENTATION_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_DOMIMPLEMENTATION_HXX
+#pragma once
#include <sal/types.h>
@@ -58,6 +57,5 @@ namespace DOM
virtual sal_Bool SAL_CALL hasFeature(const OUString& feature, const OUString& ver) override;
};
}
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/element.hxx b/unoxml/source/dom/element.hxx
index 5e44f14ac8f1..efa048bfe2e1 100644
--- a/unoxml/source/dom/element.hxx
+++ b/unoxml/source/dom/element.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_ELEMENT_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_ELEMENT_HXX
+#pragma once
#include <libxml/tree.h>
@@ -243,6 +242,4 @@ namespace DOM
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/elementlist.hxx b/unoxml/source/dom/elementlist.hxx
index 16a3eff8c5d2..66ce3bedac18 100644
--- a/unoxml/source/dom/elementlist.hxx
+++ b/unoxml/source/dom/elementlist.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_ELEMENTLIST_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_ELEMENTLIST_HXX
+#pragma once
#include <vector>
#include <string_view>
@@ -116,6 +115,4 @@ namespace DOM
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/entitiesmap.hxx b/unoxml/source/dom/entitiesmap.hxx
index a239a454e672..7349851ddb46 100644
--- a/unoxml/source/dom/entitiesmap.hxx
+++ b/unoxml/source/dom/entitiesmap.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_ENTITIESMAP_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_ENTITIESMAP_HXX
+#pragma once
#include <sal/types.h>
@@ -87,6 +86,4 @@ namespace DOM
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/entity.hxx b/unoxml/source/dom/entity.hxx
index ff45da5ee6a2..612c06502566 100644
--- a/unoxml/source/dom/entity.hxx
+++ b/unoxml/source/dom/entity.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_ENTITY_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_ENTITY_HXX
+#pragma once
#include <libxml/tree.h>
@@ -167,6 +166,4 @@ namespace DOM
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/entityreference.hxx b/unoxml/source/dom/entityreference.hxx
index c22390399192..05fd330af785 100644
--- a/unoxml/source/dom/entityreference.hxx
+++ b/unoxml/source/dom/entityreference.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_ENTITYREFERENCE_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_ENTITYREFERENCE_HXX
+#pragma once
#include <libxml/tree.h>
@@ -148,6 +147,5 @@ namespace DOM
};
}
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/notation.hxx b/unoxml/source/dom/notation.hxx
index 58edd720feb5..2a95200f51f6 100644
--- a/unoxml/source/dom/notation.hxx
+++ b/unoxml/source/dom/notation.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_NOTATION_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_NOTATION_HXX
+#pragma once
#include <libxml/tree.h>
@@ -155,6 +154,4 @@ namespace DOM
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/notationsmap.hxx b/unoxml/source/dom/notationsmap.hxx
index d56f164b00ad..9dac7d968ce6 100644
--- a/unoxml/source/dom/notationsmap.hxx
+++ b/unoxml/source/dom/notationsmap.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_NOTATIONSMAP_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_NOTATIONSMAP_HXX
+#pragma once
#include <sal/types.h>
@@ -87,6 +86,4 @@ namespace DOM
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/processinginstruction.hxx b/unoxml/source/dom/processinginstruction.hxx
index d3233ea5bcaa..e2c027816968 100644
--- a/unoxml/source/dom/processinginstruction.hxx
+++ b/unoxml/source/dom/processinginstruction.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_PROCESSINGINSTRUCTION_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_PROCESSINGINSTRUCTION_HXX
+#pragma once
#include <libxml/tree.h>
@@ -163,6 +162,4 @@ namespace DOM
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/saxbuilder.hxx b/unoxml/source/dom/saxbuilder.hxx
index 2aa702787bf2..44c9ab4be163 100644
--- a/unoxml/source/dom/saxbuilder.hxx
+++ b/unoxml/source/dom/saxbuilder.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_SAXBUILDER_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_SAXBUILDER_HXX
+#pragma once
#include <stack>
@@ -91,6 +90,4 @@ namespace DOM
};
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/unoxml/source/dom/text.hxx b/unoxml/source/dom/text.hxx
index 5c38c1db6b8c..d594b158669e 100644
--- a/unoxml/source/dom/text.hxx
+++ b/unoxml/source/dom/text.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_UNOXML_SOURCE_DOM_TEXT_HXX
-#define INCLUDED_UNOXML_SOURCE_DOM_TEXT_HXX
+#pragma once
#include <libxml/tree.h>
@@ -200,6 +199,5 @@ namespace DOM
};
}
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */