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

Shobhit (via logerrit) logerrit at kemper.freedesktop.org
Sun Jan 31 17:14:55 UTC 2021


 include/xmlreader/detail/xmlreaderdllapi.hxx |    5 +----
 include/xmlreader/pad.hxx                    |    5 +----
 include/xmlreader/span.hxx                   |    5 +----
 include/xmlreader/xmlreader.hxx              |    5 +----
 4 files changed, 4 insertions(+), 16 deletions(-)

New commits:
commit c098d1a957789f9af930438e60dbcbc5ecfc953a
Author:     Shobhit <000shobhitchaurasia at gmail.com>
AuthorDate: Sun Jan 31 20:35:58 2021 +0530
Commit:     Ilmari Lauhakangas <ilmari.lauhakangas at libreoffice.org>
CommitDate: Sun Jan 31 18:11:26 2021 +0100

    tdf#124176: Use pragma once instead of include guards
    
    Change-Id: Iedaa6ac7b326fead2545943e3bbe605882c1337b
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110204
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas at libreoffice.org>
    Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas at libreoffice.org>

diff --git a/include/xmlreader/detail/xmlreaderdllapi.hxx b/include/xmlreader/detail/xmlreaderdllapi.hxx
index e917a9553835..10708b71eb4c 100644
--- a/include/xmlreader/detail/xmlreaderdllapi.hxx
+++ b/include/xmlreader/detail/xmlreaderdllapi.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_XMLREADER_DETAIL_XMLREADERDLLAPI_HXX
-#define INCLUDED_XMLREADER_DETAIL_XMLREADERDLLAPI_HXX
+#pragma once
 
 #include <sal/config.h>
 
@@ -30,6 +29,4 @@
 #define OOO_DLLPUBLIC_XMLREADER SAL_DLLPUBLIC_IMPORT
 #endif
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/xmlreader/pad.hxx b/include/xmlreader/pad.hxx
index b142cebcdd41..3aa73d57eab4 100644
--- a/include/xmlreader/pad.hxx
+++ b/include/xmlreader/pad.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_XMLREADER_PAD_HXX
-#define INCLUDED_XMLREADER_PAD_HXX
+#pragma once
 
 #include <sal/config.h>
 
@@ -52,6 +51,4 @@ private:
 };
 }
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/xmlreader/span.hxx b/include/xmlreader/span.hxx
index bc2dbaacbe56..42bb9a6efc21 100644
--- a/include/xmlreader/span.hxx
+++ b/include/xmlreader/span.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_XMLREADER_SPAN_HXX
-#define INCLUDED_XMLREADER_SPAN_HXX
+#pragma once
 
 #include <sal/config.h>
 
@@ -80,6 +79,4 @@ struct SAL_WARN_UNUSED OOO_DLLPUBLIC_XMLREADER Span {
 
 }
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/xmlreader/xmlreader.hxx b/include/xmlreader/xmlreader.hxx
index 4e9f1347a7e5..e55e5d2cadd4 100644
--- a/include/xmlreader/xmlreader.hxx
+++ b/include/xmlreader/xmlreader.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_XMLREADER_XMLREADER_HXX
-#define INCLUDED_XMLREADER_XMLREADER_HXX
+#pragma once
 
 #include <sal/config.h>
 
@@ -184,6 +183,4 @@ private:
 
 }
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list