summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPelin Kuran <pelinrkuran@gmail.com>2020-01-27 14:38:22 +0300
committerMuhammet Kara <muhammet.kara@collabora.com>2020-01-27 21:44:04 +0100
commitf61ed40fff871a5b301b05c9d8e0755f16bf0a83 (patch)
treea64478c7bb82dd371fdcaf423570ee2834dc7534
parentd23faf1d1ae526cc7af5470e60eb7dc7a46e74cc (diff)
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@collabora.com> Tested-by: Muhammet Kara <muhammet.kara@collabora.com>
-rw-r--r--include/test/bootstrapfixture.hxx5
-rw-r--r--include/test/sheet/xdocumentauditing.hxx5
-rw-r--r--include/toolkit/helper/emptyfontdescriptor.hxx6
-rw-r--r--include/tools/cpuid.hxx5
-rw-r--r--include/tools/inetstrm.hxx5
5 files changed, 5 insertions, 21 deletions
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: */