From eb9e4e7a6c7d11698a64489e22974574daabe823 Mon Sep 17 00:00:00 2001 From: seturaj Date: Sun, 21 Jan 2024 03:02:56 -0500 Subject: tdf#143148: Use pragma once instead of include guards Change-Id: Ia8a203d1e6a7446f43cc68d883e1ee4cd0a5814f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162341 Tested-by: Jenkins Tested-by: Ilmari Lauhakangas Reviewed-by: Ilmari Lauhakangas --- include/cppuhelper/shlib.hxx | 5 +---- include/cppuhelper/supportsservice.hxx | 5 +---- include/cppuhelper/typeprovider.hxx | 5 +---- include/cppuhelper/unourl.hxx | 5 +---- include/cppuhelper/weak.hxx | 5 +---- include/cppuhelper/weakagg.hxx | 5 +---- include/cppuhelper/weakref.hxx | 5 +---- 7 files changed, 7 insertions(+), 28 deletions(-) diff --git a/include/cppuhelper/shlib.hxx b/include/cppuhelper/shlib.hxx index 07caef0eaa0d..e91862425166 100644 --- a/include/cppuhelper/shlib.hxx +++ b/include/cppuhelper/shlib.hxx @@ -20,8 +20,7 @@ /* * This file is part of LibreOffice published API. */ -#ifndef INCLUDED_CPPUHELPER_SHLIB_HXX -#define INCLUDED_CPPUHELPER_SHLIB_HXX +#pragma once #include "cppuhelper/cppuhelperdllapi.h" #include "com/sun/star/uno/Reference.h" @@ -82,6 +81,4 @@ SAL_CALL writeSharedLibComponentInfo( } // end namespace cppu -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/cppuhelper/supportsservice.hxx b/include/cppuhelper/supportsservice.hxx index 8834a3181f0b..7d5bedb8270b 100644 --- a/include/cppuhelper/supportsservice.hxx +++ b/include/cppuhelper/supportsservice.hxx @@ -11,8 +11,7 @@ * This file is part of LibreOffice published API. */ -#ifndef INCLUDED_CPPUHELPER_SUPPORTSSERVICE_HXX -#define INCLUDED_CPPUHELPER_SUPPORTSSERVICE_HXX +#pragma once #include "sal/config.h" @@ -48,6 +47,4 @@ bool CPPUHELPER_DLLPUBLIC supportsService( } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/cppuhelper/typeprovider.hxx b/include/cppuhelper/typeprovider.hxx index 4c3bd99d1bb8..e5590852e438 100644 --- a/include/cppuhelper/typeprovider.hxx +++ b/include/cppuhelper/typeprovider.hxx @@ -20,8 +20,7 @@ /* * This file is part of LibreOffice published API. */ -#ifndef INCLUDED_CPPUHELPER_TYPEPROVIDER_HXX -#define INCLUDED_CPPUHELPER_TYPEPROVIDER_HXX +#pragma once #include "sal/config.h" @@ -227,6 +226,4 @@ SAL_WNODEPRECATED_DECLARATIONS_POP } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/cppuhelper/unourl.hxx b/include/cppuhelper/unourl.hxx index 45afaedad2e9..7f33abcd8843 100644 --- a/include/cppuhelper/unourl.hxx +++ b/include/cppuhelper/unourl.hxx @@ -21,8 +21,7 @@ * This file is part of LibreOffice published API. */ -#ifndef INCLUDED_CPPUHELPER_UNOURL_HXX -#define INCLUDED_CPPUHELPER_UNOURL_HXX +#pragma once #include "sal/config.h" @@ -183,6 +182,4 @@ private: }; } -#endif // INCLUDED_RTL_UNOURL_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/cppuhelper/weak.hxx b/include/cppuhelper/weak.hxx index a1a920ce4193..bc87548f2fa9 100644 --- a/include/cppuhelper/weak.hxx +++ b/include/cppuhelper/weak.hxx @@ -20,8 +20,7 @@ /* * This file is part of LibreOffice published API. */ -#ifndef INCLUDED_CPPUHELPER_WEAK_HXX -#define INCLUDED_CPPUHELPER_WEAK_HXX +#pragma once #include #include @@ -179,6 +178,4 @@ static inline css::uno::XWeak* getXWeak(OWeakObject* instance) { return instance } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/cppuhelper/weakagg.hxx b/include/cppuhelper/weakagg.hxx index 0b770a42842b..a0f94f4433dd 100644 --- a/include/cppuhelper/weakagg.hxx +++ b/include/cppuhelper/weakagg.hxx @@ -20,8 +20,7 @@ /* * This file is part of LibreOffice published API. */ -#ifndef INCLUDED_CPPUHELPER_WEAKAGG_HXX -#define INCLUDED_CPPUHELPER_WEAKAGG_HXX +#pragma once #include "cppuhelper/weak.hxx" #include "cppuhelper/weakref.hxx" @@ -102,6 +101,4 @@ private: } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/cppuhelper/weakref.hxx b/include/cppuhelper/weakref.hxx index a5858b2e8805..4f6afb319ee1 100644 --- a/include/cppuhelper/weakref.hxx +++ b/include/cppuhelper/weakref.hxx @@ -20,8 +20,7 @@ /* * This file is part of LibreOffice published API. */ -#ifndef INCLUDED_CPPUHELPER_WEAKREF_HXX -#define INCLUDED_CPPUHELPER_WEAKREF_HXX +#pragma once #include "sal/config.h" @@ -223,6 +222,4 @@ public: } } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit