diff options
author | George Bateman <george.bateman16@gmail.com> | 2020-08-04 21:07:00 +0000 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2020-09-04 08:57:06 +0200 |
commit | fb4ddf2fc997f3b0c193b6dce22a0b1313f24240 (patch) | |
tree | 1960f6c0165aac32633a948d4c055d65298b09de /basic/source/inc | |
parent | df9ff47f984bfb8ce265cb73ec10a3dd5837bd10 (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/source/inc')
27 files changed, 27 insertions, 107 deletions
diff --git a/basic/source/inc/basiccharclass.hxx b/basic/source/inc/basiccharclass.hxx index 3b8109b89192..e58b71c1a2c6 100644 --- a/basic/source/inc/basiccharclass.hxx +++ b/basic/source/inc/basiccharclass.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_BASICCHARCLASS_HXX -#define INCLUDED_BASIC_SOURCE_INC_BASICCHARCLASS_HXX +#pragma once #include <sal/types.h> @@ -31,6 +30,4 @@ namespace BasicCharClass bool isWhitespace( sal_Unicode c ); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/buffer.hxx b/basic/source/inc/buffer.hxx index 89d664453cef..aa9111c54785 100644 --- a/basic/source/inc/buffer.hxx +++ b/basic/source/inc/buffer.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_BUFFER_HXX -#define INCLUDED_BASIC_SOURCE_INC_BUFFER_HXX +#pragma once #include <sal/types.h> #include <memory> @@ -48,6 +47,4 @@ public: sal_uInt32 GetSize() const { return nOff; } }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/codegen.hxx b/basic/source/inc/codegen.hxx index 857968e26e15..c5111002f110 100644 --- a/basic/source/inc/codegen.hxx +++ b/basic/source/inc/codegen.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_CODEGEN_HXX -#define INCLUDED_BASIC_SOURCE_INC_CODEGEN_HXX +#pragma once class SbiParser; class SbModule; @@ -80,6 +79,4 @@ public: #define PARAM_INFO_PARAMARRAY 0x0010000 #define PARAM_INFO_WITHBRACKETS 0x0020000 -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/date.hxx b/basic/source/inc/date.hxx index 1a994ca3fa0c..4b6cb115fbbf 100644 --- a/basic/source/inc/date.hxx +++ b/basic/source/inc/date.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_DATE_HXX -#define INCLUDED_BASIC_SOURCE_INC_DATE_HXX +#pragma once #include <com/sun/star/util/Date.hpp> #include <com/sun/star/util/Time.hpp> @@ -56,6 +55,4 @@ void SbxDateFromUNOTime( SbxValue*, const css::util::Time& ); css::util::DateTime SbxDateToUNODateTime( const SbxValue* ); void SbxDateFromUNODateTime( SbxValue*, const css::util::DateTime& ); -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/dlgcont.hxx b/basic/source/inc/dlgcont.hxx index 582e462ab93e..f9dbe2745c25 100644 --- a/basic/source/inc/dlgcont.hxx +++ b/basic/source/inc/dlgcont.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_DLGCONT_HXX -#define INCLUDED_BASIC_SOURCE_INC_DLGCONT_HXX +#pragma once #include "namecont.hxx" @@ -147,6 +146,4 @@ protected: } // namespace basic -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/errobject.hxx b/basic/source/inc/errobject.hxx index 65c4722e3319..95900abeb46a 100644 --- a/basic/source/inc/errobject.hxx +++ b/basic/source/inc/errobject.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_ERROBJECT_HXX -#define INCLUDED_BASIC_SOURCE_INC_ERROBJECT_HXX +#pragma once #include "sbunoobj.hxx" #include <ooo/vba/XErrObject.hpp> @@ -38,6 +37,5 @@ public: /// @throws css::uno::RuntimeException void setNumberAndDescription( ::sal_Int32 _number, const OUString& _description ); }; -#endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/eventatt.hxx b/basic/source/inc/eventatt.hxx index b38c83c597ce..4ea3e044069f 100644 --- a/basic/source/inc/eventatt.hxx +++ b/basic/source/inc/eventatt.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_EVENTATT_HXX -#define INCLUDED_BASIC_SOURCE_INC_EVENTATT_HXX +#pragma once #include <sal/config.h> @@ -29,6 +28,4 @@ class SbxArray; // and attach events. void RTL_Impl_CreateUnoDialog(SbxArray& rPar); -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/expr.hxx b/basic/source/inc/expr.hxx index d83594c4951f..b0656717e399 100644 --- a/basic/source/inc/expr.hxx +++ b/basic/source/inc/expr.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_EXPR_HXX -#define INCLUDED_BASIC_SOURCE_INC_EXPR_HXX +#pragma once #include <memory> @@ -225,6 +224,4 @@ public: void addExpression( std::unique_ptr<SbiExpression>&& pExpr ); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/filefmt.hxx b/basic/source/inc/filefmt.hxx index eb1990087d9e..f6cc8e1fe88f 100644 --- a/basic/source/inc/filefmt.hxx +++ b/basic/source/inc/filefmt.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_FILEFMT_HXX -#define INCLUDED_BASIC_SOURCE_INC_FILEFMT_HXX +#pragma once class SvStream; @@ -187,6 +186,4 @@ enum class FileOffset { // sal_Int32 lower bound // sal_Int32 upper bound -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/image.hxx b/basic/source/inc/image.hxx index ee1aaa4168b6..bf87f725cc8c 100644 --- a/basic/source/inc/image.hxx +++ b/basic/source/inc/image.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_IMAGE_HXX -#define INCLUDED_BASIC_SOURCE_INC_IMAGE_HXX +#pragma once #include <basic/sbx.hxx> #include <rtl/ustring.hxx> @@ -99,6 +98,4 @@ public: bool ExceedsLegacyLimits(); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/iosys.hxx b/basic/source/inc/iosys.hxx index 4931b86a3e94..9f60c4f29c50 100644 --- a/basic/source/inc/iosys.hxx +++ b/basic/source/inc/iosys.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_IOSYS_HXX -#define INCLUDED_BASIC_SOURCE_INC_IOSYS_HXX +#pragma once #include <memory> #include <tools/stream.hxx> @@ -107,6 +106,4 @@ public: void CloseAll(); // JSM }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/namecont.hxx b/basic/source/inc/namecont.hxx index 3a86f059c839..56b688dd1271 100644 --- a/basic/source/inc/namecont.hxx +++ b/basic/source/inc/namecont.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_NAMECONT_HXX -#define INCLUDED_BASIC_SOURCE_INC_NAMECONT_HXX +#pragma once #include <unordered_map> #include <com/sun/star/uno/XComponentContext.hpp> @@ -655,6 +654,4 @@ private: } // namespace basic -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/opcodes.hxx b/basic/source/inc/opcodes.hxx index cb97110369f4..b9c5e692a1aa 100644 --- a/basic/source/inc/opcodes.hxx +++ b/basic/source/inc/opcodes.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_OPCODES_HXX -#define INCLUDED_BASIC_SOURCE_INC_OPCODES_HXX +#pragma once // An opcode can have a length of 1, 3 or 5 bytes, // depending on its numeric value (see below). @@ -154,6 +153,4 @@ enum class SbiOpcode { SbOP2_END = FIND_STATIC_ }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/parser.hxx b/basic/source/inc/parser.hxx index 88f4f34b2b33..4e03e6d39058 100644 --- a/basic/source/inc/parser.hxx +++ b/basic/source/inc/parser.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_PARSER_HXX -#define INCLUDED_BASIC_SOURCE_INC_PARSER_HXX +#pragma once #include "expr.hxx" #include "codegen.hxx" @@ -139,6 +138,4 @@ public: }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/propacc.hxx b/basic/source/inc/propacc.hxx index c00673055c8c..f6df70797434 100644 --- a/basic/source/inc/propacc.hxx +++ b/basic/source/inc/propacc.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_BASIC_SOURCE_INC_PROPACC_HXX -#define INCLUDED_BASIC_SOURCE_INC_PROPACC_HXX +#pragma once #include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/beans/XPropertySet.hpp> @@ -74,6 +73,4 @@ class SbxArray; void RTL_Impl_CreatePropertySet( SbxArray& rPar ); -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/rtlproto.hxx b/basic/source/inc/rtlproto.hxx index 6e26f9316103..2d0cb78f84b7 100644 --- a/basic/source/inc/rtlproto.hxx +++ b/basic/source/inc/rtlproto.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_RTLPROTO_HXX -#define INCLUDED_BASIC_SOURCE_INC_RTLPROTO_HXX +#pragma once #include <basic/sbstar.hxx> @@ -360,6 +359,4 @@ extern void SbRtl_Partition(StarBASIC * pBasic, SbxArray & rPar, bool bWrite); / extern double Now_Impl(); extern void Wait_Impl( bool bDurationBased, SbxArray& rPar ); -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/runtime.hxx b/basic/source/inc/runtime.hxx index 65be051e704f..030b9c2041db 100644 --- a/basic/source/inc/runtime.hxx +++ b/basic/source/inc/runtime.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_RUNTIME_HXX -#define INCLUDED_BASIC_SOURCE_INC_RUNTIME_HXX +#pragma once #include <basic/sberrors.hxx> #include <basic/sbmeth.hxx> @@ -416,6 +415,4 @@ bool IsBaseIndexOne(); void removeDimAsNewRecoverItem( SbxVariable* pVar ); -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/sbintern.hxx b/basic/source/inc/sbintern.hxx index 9a0436813f42..a79cbb59dd1e 100644 --- a/basic/source/inc/sbintern.hxx +++ b/basic/source/inc/sbintern.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_SBINTERN_HXX -#define INCLUDED_BASIC_SOURCE_INC_SBINTERN_HXX +#pragma once #include <basic/basicdllapi.h> #include <basic/sbstar.hxx> @@ -142,6 +141,4 @@ struct SbiGlobals SbiGlobals* GetSbData(); -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/sbjsmeth.hxx b/basic/source/inc/sbjsmeth.hxx index 2e4abc509bed..b813eebd9183 100644 --- a/basic/source/inc/sbjsmeth.hxx +++ b/basic/source/inc/sbjsmeth.hxx @@ -18,8 +18,7 @@ */ -#ifndef INCLUDED_BASIC_SOURCE_INC_SBJSMETH_HXX -#define INCLUDED_BASIC_SOURCE_INC_SBJSMETH_HXX +#pragma once #include <basic/sbmeth.hxx> @@ -37,6 +36,4 @@ public: }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/sbjsmod.hxx b/basic/source/inc/sbjsmod.hxx index 9d2d7d8f4194..2219c64db004 100644 --- a/basic/source/inc/sbjsmod.hxx +++ b/basic/source/inc/sbjsmod.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_SBJSMOD_HXX -#define INCLUDED_BASIC_SOURCE_INC_SBJSMOD_HXX +#pragma once #include <basic/sbmod.hxx> @@ -35,7 +34,5 @@ public: SbJScriptModule(); // hand through }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/sbunoobj.hxx b/basic/source/inc/sbunoobj.hxx index 6827bf755d0d..e06b0e0137d2 100644 --- a/basic/source/inc/sbunoobj.hxx +++ b/basic/source/inc/sbunoobj.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_BASIC_SOURCE_INC_SBUNOOBJ_HXX -#define INCLUDED_BASIC_SOURCE_INC_SBUNOOBJ_HXX +#pragma once #include <basic/sbxobj.hxx> #include <basic/sbxmeth.hxx> @@ -390,6 +389,4 @@ bool handleToStringForCOMObjects( SbxObject* pObj, SbxValue* pVal ); void registerComListenerVariableForBasic( SbxVariable* pVar, StarBASIC* pBasic ); -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/sbxmod.hxx b/basic/source/inc/sbxmod.hxx index 853715c4b130..ceacaa84e191 100644 --- a/basic/source/inc/sbxmod.hxx +++ b/basic/source/inc/sbxmod.hxx @@ -17,14 +17,11 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_SBXMOD_HXX -#define INCLUDED_BASIC_SOURCE_INC_SBXMOD_HXX +#pragma once #include <com/sun/star/frame/XModel.hpp> #include <basic/sbstar.hxx> css::uno::Reference<css::frame::XModel> getDocumentModel(StarBASIC*); -#endif // INCLUDED_BASIC_SOURCE_INC_SBXMOD_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/scanner.hxx b/basic/source/inc/scanner.hxx index 9b03b0adc568..339b4421b829 100644 --- a/basic/source/inc/scanner.hxx +++ b/basic/source/inc/scanner.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_SCANNER_HXX -#define INCLUDED_BASIC_SOURCE_INC_SCANNER_HXX +#pragma once #include <basic/sbxdef.hxx> #include <vcl/errcode.hxx> @@ -91,6 +90,4 @@ public: double GetDbl() const { return nVal; } }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/scriptcont.hxx b/basic/source/inc/scriptcont.hxx index 98fce14b6040..bc82a42ca915 100644 --- a/basic/source/inc/scriptcont.hxx +++ b/basic/source/inc/scriptcont.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_SCRIPTCONT_HXX -#define INCLUDED_BASIC_SOURCE_INC_SCRIPTCONT_HXX +#pragma once #include "namecont.hxx" #include <basic/basmgr.hxx> @@ -158,6 +157,4 @@ protected: } // namespace basic -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/stdobj.hxx b/basic/source/inc/stdobj.hxx index d7bc4c176493..e488648c1128 100644 --- a/basic/source/inc/stdobj.hxx +++ b/basic/source/inc/stdobj.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_STDOBJ_HXX -#define INCLUDED_BASIC_SOURCE_INC_STDOBJ_HXX +#pragma once #include <basic/sbxobj.hxx> @@ -39,6 +38,4 @@ public: virtual void SetModified( bool ) override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/symtbl.hxx b/basic/source/inc/symtbl.hxx index 2dfc9c758bda..d025024918c3 100644 --- a/basic/source/inc/symtbl.hxx +++ b/basic/source/inc/symtbl.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_SYMTBL_HXX -#define INCLUDED_BASIC_SOURCE_INC_SYMTBL_HXX +#pragma once #include <memory> #include <vector> @@ -217,6 +216,4 @@ public: }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/basic/source/inc/token.hxx b/basic/source/inc/token.hxx index 34abfce82a7f..4230ff585b7a 100644 --- a/basic/source/inc/token.hxx +++ b/basic/source/inc/token.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_BASIC_SOURCE_INC_TOKEN_HXX -#define INCLUDED_BASIC_SOURCE_INC_TOKEN_HXX +#pragma once #include "scanner.hxx" @@ -135,6 +134,4 @@ public: }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |