summaryrefslogtreecommitdiff
path: root/basic/inc
diff options
context:
space:
mode:
authorGeorge Bateman <george.bateman16@gmail.com>2020-08-04 21:07:00 +0000
committerJulien Nabet <serval2412@yahoo.fr>2020-09-04 08:57:06 +0200
commitfb4ddf2fc997f3b0c193b6dce22a0b1313f24240 (patch)
tree1960f6c0165aac32633a948d4c055d65298b09de /basic/inc
parentdf9ff47f984bfb8ce265cb73ec10a3dd5837bd10 (diff)
tdf#124176 Use #pragma once in basic
This commit was carried out by a Python script, source of which is at https://bugs.documentfoundation.org/show_bug.cgi?id=124176#c97. Change-Id: Ief7f29d8efaa3d6ac417080f3147a087844621a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100128 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'basic/inc')
-rw-r--r--basic/inc/basic.hrc5
-rw-r--r--basic/inc/global.hxx5
-rw-r--r--basic/inc/sb.hxx5
-rw-r--r--basic/inc/sbobjmod.hxx5
-rw-r--r--basic/inc/sbprop.hxx5
-rw-r--r--basic/inc/sbstdobj.hxx5
-rw-r--r--basic/inc/sbxbase.hxx5
-rw-r--r--basic/inc/strings.hrc5
8 files changed, 8 insertions, 32 deletions
diff --git a/basic/inc/basic.hrc b/basic/inc/basic.hrc
index c860fce7aaed..1a063615318e 100644
--- a/basic/inc/basic.hrc
+++ b/basic/inc/basic.hrc
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_BASIC_INC_STRINGS_HRC
-#define INCLUDED_BASIC_INC_STRINGS_HRC
+#pragma once
#define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String)
@@ -156,6 +155,4 @@ std::pair<const char*, ErrCode> const RID_BASIC_START[] =
{ nullptr, ERRCODE_NONE }
};
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/inc/global.hxx b/basic/inc/global.hxx
index 640759ef8c17..aa101a562ced 100644
--- a/basic/inc/global.hxx
+++ b/basic/inc/global.hxx
@@ -7,8 +7,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
-#ifndef INCLUDED_BASIC_INC_GLOBAL_HXX
-#define INCLUDED_BASIC_INC_GLOBAL_HXX
+#pragma once
namespace utl {
class TransliterationWrapper;
@@ -20,6 +19,4 @@ public:
static utl::TransliterationWrapper& GetTransliteration();
};
-#endif // INCLUDED_BASIC_INC_GLOBAL_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/inc/sb.hxx b/basic/inc/sb.hxx
index bfac343fb5d6..4f3132fcf569 100644
--- a/basic/inc/sb.hxx
+++ b/basic/inc/sb.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_BASIC_INC_SB_HXX
-#define INCLUDED_BASIC_INC_SB_HXX
+#pragma once
#include <basic/sbxobj.hxx>
@@ -27,6 +26,4 @@ SbxObject* createUserTypeImpl( const OUString& rClassName );
SbxObject* cloneTypeObjectImpl( const SbxObject& rTypeObj );
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/inc/sbobjmod.hxx b/basic/inc/sbobjmod.hxx
index b87892f52323..788be5fe43dd 100644
--- a/basic/inc/sbobjmod.hxx
+++ b/basic/inc/sbobjmod.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_BASIC_INC_SBOBJMOD_HXX
-#define INCLUDED_BASIC_INC_SBOBJMOD_HXX
+#pragma once
#include <rtl/ref.hxx>
#include <basic/sbmod.hxx>
@@ -94,6 +93,4 @@ public:
virtual SbxVariable* Find( const OUString& rName, SbxClassType t ) override;
};
-#endif // INCLUDED_BASIC_INC_SBOBJMOD_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/inc/sbprop.hxx b/basic/inc/sbprop.hxx
index bd4a8b117c54..e554267f9e0b 100644
--- a/basic/inc/sbprop.hxx
+++ b/basic/inc/sbprop.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_BASIC_INC_SBPROP_HXX
-#define INCLUDED_BASIC_INC_SBPROP_HXX
+#pragma once
#include "sbxprop.hxx"
#include <basic/sbdef.hxx>
@@ -58,6 +57,4 @@ public:
{ mbSet = bSet; }
};
-#endif // INCLUDED_BASIC_INC_SBPROP_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/inc/sbstdobj.hxx b/basic/inc/sbstdobj.hxx
index ad242dfb1489..93e9abf6887e 100644
--- a/basic/inc/sbstdobj.hxx
+++ b/basic/inc/sbstdobj.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_BASIC_INC_SBSTDOBJ_HXX
-#define INCLUDED_BASIC_INC_SBSTDOBJ_HXX
+#pragma once
#include <basic/sbxobj.hxx>
#include <vcl/graph.hxx>
@@ -104,6 +103,4 @@ public:
SbStdClipboard();
};
-#endif // INCLUDED_BASIC_INC_SBSTDOBJ_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/inc/sbxbase.hxx b/basic/inc/sbxbase.hxx
index a1f5a2c7dffb..40255c485a8f 100644
--- a/basic/inc/sbxbase.hxx
+++ b/basic/inc/sbxbase.hxx
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_BASIC_INC_SBXBASE_HXX
-#define INCLUDED_BASIC_INC_SBXBASE_HXX
+#pragma once
#include <sal/config.h>
@@ -57,6 +56,4 @@ SbxAppData& GetSbxData_Impl();
/** returns true if the SbxAppData is still valid, used to check if we are in shutdown. */
bool IsSbxData_Impl();
-#endif // INCLUDED_BASIC_INC_SBXBASE_HXX
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/basic/inc/strings.hrc b/basic/inc/strings.hrc
index c257ac2fd225..ff8e0fc22618 100644
--- a/basic/inc/strings.hrc
+++ b/basic/inc/strings.hrc
@@ -17,8 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-#ifndef INCLUDED_BASIC_INC_STRINGS_HRC
-#define INCLUDED_BASIC_INC_STRINGS_HRC
+#pragma once
#define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String)
@@ -33,6 +32,4 @@
#define IDS_SBERR_TERMINATED NC_("IDS_SBERR_TERMINATED", "The macro running has been interrupted")
-#endif
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */