summaryrefslogtreecommitdiff
path: root/include/basic
diff options
context:
space:
mode:
authorAbrar Emad <eng.abraremad.ae@gmail.com>2024-10-16 14:11:13 +0300
committerIlmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>2024-10-16 16:14:52 +0200
commit8e2369a7813ba7dca75ac30b5ae2a26e181503c6 (patch)
treea42858a0d8e0bc20a4a734a397ac8c084848589d /include/basic
parentd0ffbb841af2a3ca0c87b6d7275b33259a180892 (diff)
tdf#143148 Use pragma once instead of include guards
Change-Id: I9df35198804cca98cd71c19fa4ef74fb6f47fd5e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175013 Tested-by: Jenkins Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'include/basic')
-rw-r--r--include/basic/sbxcore.hxx5
-rw-r--r--include/basic/sbxdef.hxx5
-rw-r--r--include/basic/sbxmeth.hxx5
-rw-r--r--include/basic/sbxobj.hxx5
-rw-r--r--include/basic/sbxvar.hxx5
5 files changed, 5 insertions, 20 deletions
diff --git a/include/basic/sbxcore.hxx b/include/basic/sbxcore.hxx
index 2fc27cf86efd..9cf0a2fc2b3e 100644
--- a/include/basic/sbxcore.hxx
+++ b/include/basic/sbxcore.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_BASIC_SBXCORE_HXX
-#define INCLUDED_BASIC_SBXCORE_HXX
+#pragma once
#include <basic/basicdllapi.h>
#include <basic/sbxdef.hxx>
@@ -132,6 +131,4 @@ inline bool SbxBase::IsHidden() const
inline bool SbxBase::IsVisible() const
{ return IsReset( SbxFlagBits::Invisible ); }
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/basic/sbxdef.hxx b/include/basic/sbxdef.hxx
index b0c667bfc854..00e9af8ba01a 100644
--- a/include/basic/sbxdef.hxx
+++ b/include/basic/sbxdef.hxx
@@ -18,8 +18,7 @@
*/
-#ifndef INCLUDED_BASIC_SBXDEF_HXX
-#define INCLUDED_BASIC_SBXDEF_HXX
+#pragma once
#include <o3tl/typed_flags_set.hxx>
#include <sal/types.h>
@@ -214,6 +213,4 @@ constexpr auto SBX_MAXINDEX32 = SbxMAXLNG;
// The numeric values of sal_True and FALSE
enum SbxBOOL { SbxFALSE = 0, SbxTRUE = -1 };
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/basic/sbxmeth.hxx b/include/basic/sbxmeth.hxx
index 23ec6a00e5c9..b1c90d9a3654 100644
--- a/include/basic/sbxmeth.hxx
+++ b/include/basic/sbxmeth.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_BASIC_SBXMETH_HXX
-#define INCLUDED_BASIC_SBXMETH_HXX
+#pragma once
#include <basic/sbxvar.hxx>
#include <basic/basicdllapi.h>
@@ -39,6 +38,4 @@ public:
virtual void Clear() override;
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/basic/sbxobj.hxx b/include/basic/sbxobj.hxx
index fbc8bbf9d70b..234d73d1b78b 100644
--- a/include/basic/sbxobj.hxx
+++ b/include/basic/sbxobj.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_BASIC_SBXOBJ_HXX
-#define INCLUDED_BASIC_SBXOBJ_HXX
+#pragma once
#include <svl/lstner.hxx>
#include <basic/sbxvar.hxx>
@@ -82,6 +81,4 @@ public:
SAL_DLLPRIVATE void Dump( SvStream&, bool bDumpAll );
};
-#endif // INCLUDED_BASIC_SBXOBJ_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/basic/sbxvar.hxx b/include/basic/sbxvar.hxx
index cf18367d5430..b6aed459ca6c 100644
--- a/include/basic/sbxvar.hxx
+++ b/include/basic/sbxvar.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_BASIC_SBXVAR_HXX
-#define INCLUDED_BASIC_SBXVAR_HXX
+#pragma once
#include <rtl/character.hxx>
#include <rtl/ustring.hxx>
@@ -331,6 +330,4 @@ public:
virtual void SetParent(SbxObject* p) override;
};
-#endif // INCLUDED_BASIC_SBXVAR_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */