From f61ed40fff871a5b301b05c9d8e0755f16bf0a83 Mon Sep 17 00:00:00 2001 From: Pelin Kuran Date: Mon, 27 Jan 2020 14:38:22 +0300 Subject: 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 Tested-by: Muhammet Kara --- 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(-) 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 @@ -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 #include @@ -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 #include @@ -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 #include @@ -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 #include @@ -61,6 +60,4 @@ public: int Read (char *pData, sal_uInt32 nSize); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit