[Libreoffice-commits] core.git: include/xmlscript

msrijita18 (via logerrit) logerrit at kemper.freedesktop.org
Mon Feb 8 09:58:10 UTC 2021


 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(-)

New commits:
commit 449920770449d7bf1379e2e8da6d634b90e8bace
Author:     msrijita18 <msrijita189 at gmail.com>
AuthorDate: Fri Jan 29 16:57:58 2021 +0530
Commit:     Ilmari Lauhakangas <ilmari.lauhakangas at libreoffice.org>
CommitDate: Mon Feb 8 10:57:27 2021 +0100

    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 at libreoffice.org>

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: */


More information about the Libreoffice-commits mailing list