summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseturaj <seturajmatroja@gmail.com>2024-01-21 03:02:56 -0500
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-01-21 11:26:19 +0100
commiteb9e4e7a6c7d11698a64489e22974574daabe823 (patch)
tree49b2f7e9e347e872da47046ef2436606ed7ab743
parentdad0ea5c75445dc8ca316c4e5af1a9d6875699c1 (diff)
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 <ilmari.lauhakangas@libreoffice.org> Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
-rw-r--r--include/cppuhelper/shlib.hxx5
-rw-r--r--include/cppuhelper/supportsservice.hxx5
-rw-r--r--include/cppuhelper/typeprovider.hxx5
-rw-r--r--include/cppuhelper/unourl.hxx5
-rw-r--r--include/cppuhelper/weak.hxx5
-rw-r--r--include/cppuhelper/weakagg.hxx5
-rw-r--r--include/cppuhelper/weakref.hxx5
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 <cassert>
#include <cstddef>
@@ -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: */