summaryrefslogtreecommitdiff
path: root/include/xmlscript
diff options
context:
space:
mode:
authormsrijita18 <msrijita189@gmail.com>2021-01-29 16:57:58 +0530
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2021-02-08 10:57:27 +0100
commit449920770449d7bf1379e2e8da6d634b90e8bace (patch)
tree2272676c257838d56729bb89bde3df6117176b23 /include/xmlscript
parentcbbeae83356942d2e9c71b2d51be322541458722 (diff)
tdf#124176 Use pragma once instead of include guards in xmlscript
Change-Id: Ie9065250341d9ccafc4cae8bc0dbed5cfe911580 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110152 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'include/xmlscript')
-rw-r--r--include/xmlscript/xml_helper.hxx5
-rw-r--r--include/xmlscript/xmldlg_imexp.hxx5
-rw-r--r--include/xmlscript/xmllib_imexp.hxx5
-rw-r--r--include/xmlscript/xmlmod_imexp.hxx5
-rw-r--r--include/xmlscript/xmlns.h5
-rw-r--r--include/xmlscript/xmlscriptdllapi.h5
6 files changed, 6 insertions, 24 deletions
diff --git a/include/xmlscript/xml_helper.hxx b/include/xmlscript/xml_helper.hxx
index 2f65c75e1f42..e2b7fee3b3a6 100644
--- a/include/xmlscript/xml_helper.hxx
+++ b/include/xmlscript/xml_helper.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSCRIPT_XML_HELPER_HXX
-#define INCLUDED_XMLSCRIPT_XML_HELPER_HXX
+#pragma once
#include <vector>
#include <cppuhelper/implbase.hxx>
@@ -119,6 +118,4 @@ createOutputStream(
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/xmlscript/xmldlg_imexp.hxx b/include/xmlscript/xmldlg_imexp.hxx
index 5472c0dd2659..eed39cf801c9 100644
--- a/include/xmlscript/xmldlg_imexp.hxx
+++ b/include/xmlscript/xmldlg_imexp.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSCRIPT_XMLDLG_IMEXP_HXX
-#define INCLUDED_XMLSCRIPT_XMLDLG_IMEXP_HXX
+#pragma once
#include <com/sun/star/uno/Reference.hxx>
@@ -61,6 +60,4 @@ XMLSCRIPT_DLLPUBLIC void importDialogModel(
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/xmlscript/xmllib_imexp.hxx b/include/xmlscript/xmllib_imexp.hxx
index 0e79995831f6..f39a6e32d2df 100644
--- a/include/xmlscript/xmllib_imexp.hxx
+++ b/include/xmlscript/xmllib_imexp.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSCRIPT_XMLLIB_IMEXP_HXX
-#define INCLUDED_XMLSCRIPT_XMLLIB_IMEXP_HXX
+#pragma once
#include <com/sun/star/uno/Sequence.hxx>
@@ -80,6 +79,4 @@ importLibrary( LibDescriptor& rLib );
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/xmlscript/xmlmod_imexp.hxx b/include/xmlscript/xmlmod_imexp.hxx
index 130c32ba8c73..19623b251479 100644
--- a/include/xmlscript/xmlmod_imexp.hxx
+++ b/include/xmlscript/xmlmod_imexp.hxx
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSCRIPT_XMLMOD_IMEXP_HXX
-#define INCLUDED_XMLSCRIPT_XMLMOD_IMEXP_HXX
+#pragma once
#include <com/sun/star/uno/Reference.hxx>
#include <rtl/ustring.hxx>
@@ -52,6 +51,4 @@ importScriptModule( ModuleDescriptor& rMod );
}
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/xmlscript/xmlns.h b/include/xmlscript/xmlns.h
index 5594963ae303..b1283afacae9 100644
--- a/include/xmlscript/xmlns.h
+++ b/include/xmlscript/xmlns.h
@@ -16,8 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_XMLSCRIPT_XMLNS_H
-#define INCLUDED_XMLSCRIPT_XMLNS_H
+#pragma once
#define XMLNS_DIALOGS_URI "http://openoffice.org/2000/dialog"
#define XMLNS_DIALOGS_PREFIX "dlg"
@@ -34,6 +33,4 @@
#define XMLNS_XLINK_URI "http://www.w3.org/1999/xlink"
#define XMLNS_XLINK_PREFIX "xlink"
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/xmlscript/xmlscriptdllapi.h b/include/xmlscript/xmlscriptdllapi.h
index 6d3875885d78..caacac12c074 100644
--- a/include/xmlscript/xmlscriptdllapi.h
+++ b/include/xmlscript/xmlscriptdllapi.h
@@ -16,9 +16,7 @@
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
-#ifndef INCLUDED_XMLSCRIPT_XMLSCRIPTDLLAPI_H
-#define INCLUDED_XMLSCRIPT_XMLSCRIPTDLLAPI_H
+#pragma once
#include <sal/types.h>
@@ -29,5 +27,4 @@
#endif
#define XMLSCRIPT_DLLPRIVATE SAL_DLLPRIVATE
-#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */