[Libreoffice-commits] core.git: include/test include/toolkit include/tools

Pelin Kuran (via logerrit) logerrit at kemper.freedesktop.org
Mon Jan 27 20:44:36 UTC 2020


 include/test/bootstrapfixture.hxx              |    5 +----
 include/test/sheet/xdocumentauditing.hxx       |    5 +----
 include/toolkit/helper/emptyfontdescriptor.hxx |    6 +-----
 include/tools/cpuid.hxx                        |    5 +----
 include/tools/inetstrm.hxx                     |    5 +----
 5 files changed, 5 insertions(+), 21 deletions(-)

New commits:
commit f61ed40fff871a5b301b05c9d8e0755f16bf0a83
Author:     Pelin Kuran <pelinrkuran at gmail.com>
AuthorDate: Mon Jan 27 14:38:22 2020 +0300
Commit:     Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Mon Jan 27 21:44:04 2020 +0100

    tdf#124176: Use pragma once instead of header guard
    
    Change-Id: Id28874549342349fb2727c3cb8e92da1dcdb727c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87513
    Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>
    Tested-by: Muhammet Kara <muhammet.kara at collabora.com>

diff --git a/include/test/bootstrapfixture.hxx b/include/test/bootstrapfixture.hxx
index 986ff1a7578f..e93a6a583b43 100644
--- a/include/test/bootstrapfixture.hxx
+++ b/include/test/bootstrapfixture.hxx
@@ -6,8 +6,7 @@
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
-#ifndef INCLUDED_TEST_BOOTSTRAPFIXTURE_HXX
-#define INCLUDED_TEST_BOOTSTRAPFIXTURE_HXX
+#pragma once
 
 #include <sal/config.h>
 
@@ -59,6 +58,4 @@ public:
 
 }
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/test/sheet/xdocumentauditing.hxx b/include/test/sheet/xdocumentauditing.hxx
index 5c19446ca252..282db0226d58 100644
--- a/include/test/sheet/xdocumentauditing.hxx
+++ b/include/test/sheet/xdocumentauditing.hxx
@@ -7,8 +7,7 @@
  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  */
 
-#ifndef INCLUDED_TEST_SHEET_XDOCUMENTAUDITING_HXX
-#define INCLUDED_TEST_SHEET_XDOCUMENTAUDITING_HXX
+#pragma once
 
 #include <com/sun/star/awt/Point.hpp>
 #include <com/sun/star/beans/PropertyValue.hpp>
@@ -42,6 +41,4 @@ private:
 };
 } // namespace apitest
 
-#endif // INCLUDED_TEST_SHEET_XDOCUMENTAUDITING_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/include/toolkit/helper/emptyfontdescriptor.hxx b/include/toolkit/helper/emptyfontdescriptor.hxx
index 28a1aa3c1f14..ffd6f65b681d 100644
--- a/include/toolkit/helper/emptyfontdescriptor.hxx
+++ b/include/toolkit/helper/emptyfontdescriptor.hxx
@@ -17,8 +17,7 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 
-#ifndef INCLUDED_TOOLKIT_HELPER_EMPTYFONTDESCRIPTOR_HXX
-#define INCLUDED_TOOLKIT_HELPER_EMPTYFONTDESCRIPTOR_HXX
+#pragma once
 
 #include <com/sun/star/awt/FontDescriptor.hpp>
 #include <com/sun/star/awt/FontSlant.hpp>
@@ -40,7 +39,4 @@ public:
     }
 };
 
-
-#endif // INCLUDED_TOOLKIT_HELPER_EMPTYFONTDESCRIPTOR_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/tools/cpuid.hxx b/include/tools/cpuid.hxx
index 27e9987398e4..90c7d37b485c 100644
--- a/include/tools/cpuid.hxx
+++ b/include/tools/cpuid.hxx
@@ -8,8 +8,7 @@
  *
  */
 
-#ifndef INCLUDED_TOOLS_CPUID_HXX
-#define INCLUDED_TOOLS_CPUID_HXX
+#pragma once
 
 #include <sal/config.h>
 #include <tools/toolsdllapi.h>
@@ -80,6 +79,4 @@ inline bool hasHyperThreading()
 
 } // end cpuid
 
-#endif // INCLUDED_TOOLS_CPUID_HXX
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/tools/inetstrm.hxx b/include/tools/inetstrm.hxx
index 48e371fa0105..f85fc3436f09 100644
--- a/include/tools/inetstrm.hxx
+++ b/include/tools/inetstrm.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_TOOLS_INETSTRM_HXX
-#define INCLUDED_TOOLS_INETSTRM_HXX
+#pragma once
 
 #include <tools/toolsdllapi.h>
 #include <tools/stream.hxx>
@@ -61,6 +60,4 @@ public:
     int Read (char *pData, sal_uInt32 nSize);
 };
 
-#endif
-
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */


More information about the Libreoffice-commits mailing list