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

princesinghtomar (via logerrit) logerrit at kemper.freedesktop.org
Tue Jan 19 14:26:34 UTC 2021


 include/store/store.h       |    8 +-------
 include/store/store.hxx     |    5 +----
 include/store/storedllapi.h |    5 +----
 include/store/types.h       |    5 +----
 4 files changed, 4 insertions(+), 19 deletions(-)

New commits:
commit 83f92f0c567ddba9715b2a48836fae78144aa0fd
Author:     princesinghtomar <singhtomarprince470 at gmail.com>
AuthorDate: Wed Dec 30 18:05:55 2020 +0530
Commit:     Ilmari Lauhakangas <ilmari.lauhakangas at libreoffice.org>
CommitDate: Tue Jan 19 15:25:22 2021 +0100

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

diff --git a/include/store/store.h b/include/store/store.h
index 7da4901a09dd..2fdfa4a302d7 100644
--- a/include/store/store.h
+++ b/include/store/store.h
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_STORE_STORE_H
-#define INCLUDED_STORE_STORE_H
+#pragma once
 
 #include <store/storedllapi.h>
 #include <store/types.h>
@@ -215,9 +214,4 @@ STORE_DLLPUBLIC storeError store_remove (
 }
 #endif
 
-#endif // INCLUDED_STORE_STORE_H
-
-
-
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/store/store.hxx b/include/store/store.hxx
index c4f4ce6db5fb..d32ceefbe76b 100644
--- a/include/store/store.hxx
+++ b/include/store/store.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_STORE_STORE_HXX
-#define INCLUDED_STORE_STORE_HXX
+#pragma once
 
 #include <store/store.h>
 #include <sal/types.h>
@@ -351,6 +350,4 @@ private:
 
 } // namespace store
 
-#endif /* ! INCLUDED_STORE_STORE_HXX */
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/store/storedllapi.h b/include/store/storedllapi.h
index 0b07462adb30..14a0d2feb2ee 100644
--- a/include/store/storedllapi.h
+++ b/include/store/storedllapi.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_STORE_STOREDLLAPI_H
-#define INCLUDED_STORE_STOREDLLAPI_H
+#pragma once
 
 #include <sal/types.h>
 
@@ -27,6 +26,4 @@
 #define STORE_DLLPUBLIC SAL_DLLPUBLIC_IMPORT
 #endif
 
-#endif // INCLUDED_STORE_STOREDLLAPI_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/store/types.h b/include/store/types.h
index 309456c3cce8..7abf012ea516 100644
--- a/include/store/types.h
+++ b/include/store/types.h
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_STORE_TYPES_H
-#define INCLUDED_STORE_TYPES_H
+#pragma once
 
 #include <sal/types.h>
 
@@ -128,6 +127,4 @@ typedef struct
 }
 #endif
 
-#endif // INCLUDED_STORE_TYPES_H
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list