From 449920770449d7bf1379e2e8da6d634b90e8bace Mon Sep 17 00:00:00 2001 From: msrijita18 Date: Fri, 29 Jan 2021 16:57:58 +0530 Subject: [PATCH] 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 --- include/xmlscript/xml_helper.hxx | 5 +---- include/xmlscript/xmldlg_imexp.hxx | 5 +---- include/xmlscript/xmllib_imexp.hxx | 5 +---- include/xmlscript/xmlmod_imexp.hxx | 5 +---- include/xmlscript/xmlns.h | 5 +---- include/xmlscript/xmlscriptdllapi.h | 5 +---- 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 #include @@ -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 @@ -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 @@ -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 #include @@ -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 @@ -29,5 +27,4 @@ #endif #define XMLSCRIPT_DLLPRIVATE SAL_DLLPRIVATE -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */