diff options
author | Vincent LE GARREC <libreoffice@le-garrec.fr> | 2021-03-06 09:49:30 +0100 |
---|---|---|
committer | Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org> | 2021-03-23 13:39:56 +0100 |
commit | 24552a0b5be620b5e58b10842cba78e36fa26b04 (patch) | |
tree | df793dbd1f18169a93be145ae5ded9cca2f6cc67 /sc/source/core | |
parent | 59b0dd6e94c876dd322503f326fedf5fa350d25e (diff) |
tdf#124176 Use pragma once in s*
sc, scaddins, sccomp, scripting
Change-Id: Ia99fec9e238033821cb784810edd4762c09bd5db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112049
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Diffstat (limited to 'sc/source/core')
26 files changed, 26 insertions, 104 deletions
diff --git a/sc/source/core/inc/addinhelpid.hxx b/sc/source/core/inc/addinhelpid.hxx index 878a0cf7e694..82967ecf971d 100644 --- a/sc/source/core/inc/addinhelpid.hxx +++ b/sc/source/core/inc/addinhelpid.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_ADDINHELPID_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_ADDINHELPID_HXX +#pragma once #include <rtl/ustring.hxx> #include <rtl/string.hxx> @@ -43,6 +42,4 @@ public: OString GetHelpId( const OUString& rFuncName ) const; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/addinlis.hxx b/sc/source/core/inc/addinlis.hxx index ea83de408e68..ac3d2d64da65 100644 --- a/sc/source/core/inc/addinlis.hxx +++ b/sc/source/core/inc/addinlis.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_ADDINLIS_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_ADDINLIS_HXX +#pragma once #include <memory> #include "adiasync.hxx" @@ -82,6 +81,4 @@ public: virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override; }; -#endif // INCLUDED_SC_SOURCE_CORE_INC_ADDINLIS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/adiasync.hxx b/sc/source/core/inc/adiasync.hxx index 1fd3dd4334cc..b693f12a28b8 100644 --- a/sc/source/core/inc/adiasync.hxx +++ b/sc/source/core/inc/adiasync.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_ADIASYNC_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_ADIASYNC_HXX +#pragma once #include <svl/broadcast.hxx> #include <set> @@ -75,6 +74,4 @@ using ScAddInAsyncs = std::set<std::unique_ptr<ScAddInAsync>, CompareScAddInAsyn extern ScAddInAsyncs theAddInAsyncTbl; // in adiasync.cxx -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/arraysumfunctor.hxx b/sc/source/core/inc/arraysumfunctor.hxx index fc198190860f..62847493b88a 100644 --- a/sc/source/core/inc/arraysumfunctor.hxx +++ b/sc/source/core/inc/arraysumfunctor.hxx @@ -8,8 +8,7 @@ * */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_ARRAYSUMFUNCTOR_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_ARRAYSUMFUNCTOR_HXX +#pragma once #include <cstdint> #include <cmath> @@ -116,6 +115,4 @@ private: } // end namespace sc -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/bcaslot.hxx b/sc/source/core/inc/bcaslot.hxx index adc371c813c6..2c85229b1feb 100644 --- a/sc/source/core/inc/bcaslot.hxx +++ b/sc/source/core/inc/bcaslot.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_BCASLOT_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_BCASLOT_HXX +#pragma once #include <memory> #include <map> @@ -386,6 +385,4 @@ public: } }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/cellkeytranslator.hxx b/sc/source/core/inc/cellkeytranslator.hxx index 5d5aae5335a2..1e42d1cf1182 100644 --- a/sc/source/core/inc/cellkeytranslator.hxx +++ b/sc/source/core/inc/cellkeytranslator.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_CELLKEYTRANSLATOR_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_CELLKEYTRANSLATOR_HXX +#pragma once #include <formula/opcode.hxx> #include <unotools/transliterationwrapper.hxx> @@ -81,6 +80,4 @@ private: ::utl::TransliterationWrapper maTransWrapper; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/ddelink.hxx b/sc/source/core/inc/ddelink.hxx index 47cf54475a3a..6baa7cee4761 100644 --- a/sc/source/core/inc/ddelink.hxx +++ b/sc/source/core/inc/ddelink.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_DDELINK_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_DDELINK_HXX +#pragma once #include <sfx2/lnkbase.hxx> #include <svl/broadcast.hxx> @@ -82,6 +81,4 @@ public: static bool IsInUpdate() { return bIsInUpdate; } }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/doubleref.hxx b/sc/source/core/inc/doubleref.hxx index 15e30f444404..b8cb084e792b 100644 --- a/sc/source/core/inc/doubleref.hxx +++ b/sc/source/core/inc/doubleref.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_DOUBLEREF_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_DOUBLEREF_HXX +#pragma once #include <sal/config.h> @@ -176,6 +175,4 @@ private: SCROW mnRows; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/formulagroupcl.hxx b/sc/source/core/inc/formulagroupcl.hxx index a9853f35b0d9..586b21f4c598 100644 --- a/sc/source/core/inc/formulagroupcl.hxx +++ b/sc/source/core/inc/formulagroupcl.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_FORMULAGROUPCL_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_FORMULAGROUPCL_HXX +#pragma once #include <formulagroup.hxx> @@ -27,6 +26,4 @@ public: } // namespace sc::opencl -#endif // INCLUDED_SC_SOURCE_CORE_INC_FORMULAGROUPCL_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/grouptokenconverter.hxx b/sc/source/core/inc/grouptokenconverter.hxx index 499ced08cd79..0d2f02227b3b 100644 --- a/sc/source/core/inc/grouptokenconverter.hxx +++ b/sc/source/core/inc/grouptokenconverter.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_GROUPTOKENCONVERTER_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_GROUPTOKENCONVERTER_HXX +#pragma once #include <types.hxx> #include <formulalogger.hxx> @@ -36,6 +35,4 @@ public: bool convert( const ScTokenArray& rCode, sc::FormulaLogger::GroupScope& rScope ); }; -#endif // INCLUDED_SC_SOURCE_CORE_INC_GROUPTOKENCONVERTER_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx index f8e5f616053c..d131b0279c2a 100644 --- a/sc/source/core/inc/interpre.hxx +++ b/sc/source/core/inc/interpre.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_INTERPRE_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_INTERPRE_HXX +#pragma once #include <rtl/math.hxx> #include <rtl/ustring.hxx> @@ -1164,6 +1163,4 @@ inline sal_Int16 ScInterpreter::GetDayOfWeek( sal_Int32 n ) return static_cast< sal_Int16 >( ( n - 1 ) % 7 ); } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/jumpmatrix.hxx b/sc/source/core/inc/jumpmatrix.hxx index 23c17a3b003f..f0fb9c1abb68 100644 --- a/sc/source/core/inc/jumpmatrix.hxx +++ b/sc/source/core/inc/jumpmatrix.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_JUMPMATRIX_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_JUMPMATRIX_HXX +#pragma once #include <limits.h> #include <vector> @@ -120,6 +119,4 @@ public: void PutResultEmptyPath( SCSIZE nC, SCSIZE nR ); }; -#endif // INCLUDED_SC_SOURCE_CORE_INC_JUMPMATRIX_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/parclass.hxx b/sc/source/core/inc/parclass.hxx index 889b2bc38947..4b043fd7fef6 100644 --- a/sc/source/core/inc/parclass.hxx +++ b/sc/source/core/inc/parclass.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_PARCLASS_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_PARCLASS_HXX +#pragma once #include <formula/opcode.hxx> #include <formula/paramclass.hxx> @@ -142,6 +141,4 @@ private: #endif // DEBUG_SC_PARCLASSDOC }; -#endif // INCLUDED_SC_SOURCE_CORE_INC_PARCLASS_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/poolhelp.hxx b/sc/source/core/inc/poolhelp.hxx index 66a729ad49ea..a1e3f92b7f8c 100644 --- a/sc/source/core/inc/poolhelp.hxx +++ b/sc/source/core/inc/poolhelp.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_POOLHELP_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_POOLHELP_HXX +#pragma once #include <rtl/ref.hxx> #include <salhelper/simplereferenceobject.hxx> @@ -62,6 +61,4 @@ public: std::unique_ptr<SvNumberFormatter> CreateNumberFormatter() const; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/refupdat.hxx b/sc/source/core/inc/refupdat.hxx index 1601c66bfe6c..cd3ab69dfaa4 100644 --- a/sc/source/core/inc/refupdat.hxx +++ b/sc/source/core/inc/refupdat.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_REFUPDAT_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_REFUPDAT_HXX +#pragma once #include <global.hxx> @@ -69,6 +68,4 @@ public: const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY, ScRange& rRef ); }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/scrdata.hxx b/sc/source/core/inc/scrdata.hxx index 127fc2014245..0698e1257330 100644 --- a/sc/source/core/inc/scrdata.hxx +++ b/sc/source/core/inc/scrdata.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_SCRDATA_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_SCRDATA_HXX +#pragma once #include <com/sun/star/uno/Reference.hxx> @@ -35,6 +34,4 @@ public: ScScriptTypeData() {} }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/inc/webservicelink.hxx b/sc/source/core/inc/webservicelink.hxx index 59f58f2f82ef..7f1d1e913156 100644 --- a/sc/source/core/inc/webservicelink.hxx +++ b/sc/source/core/inc/webservicelink.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SC_SOURCE_CORE_INC_WEBSERVICE_HXX -#define INCLUDED_SC_SOURCE_CORE_INC_WEBSERVICE_HXX +#pragma once #include <sfx2/lnkbase.hxx> #include <svl/broadcast.hxx> @@ -47,6 +46,4 @@ public: const OUString& GetURL() const { return aURL; } }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/sc/source/core/opencl/op_addin.hxx b/sc/source/core/opencl/op_addin.hxx index 907f53b9427d..96f89968b341 100644 --- a/sc/source/core/opencl/op_addin.hxx +++ b/sc/source/core/opencl/op_addin.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SC_SOURCE_CORE_OPENCL_OP_ADDIN_HXX -#define INCLUDED_SC_SOURCE_CORE_OPENCL_OP_ADDIN_HXX +#pragma once #include "opbase.hxx" @@ -31,6 +30,4 @@ public: } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/opencl/op_database.hxx b/sc/source/core/opencl/op_database.hxx index 5488edb321e5..effacc1235f2 100644 --- a/sc/source/core/opencl/op_database.hxx +++ b/sc/source/core/opencl/op_database.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SC_SOURCE_CORE_OPENCL_OP_DATABASE_HXX -#define INCLUDED_SC_SOURCE_CORE_OPENCL_OP_DATABASE_HXX +#pragma once #include "opbase.hxx" @@ -104,6 +103,4 @@ public: } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/opencl/op_financial.hxx b/sc/source/core/opencl/op_financial.hxx index 1e9db95d9eea..87469c824c11 100644 --- a/sc/source/core/opencl/op_financial.hxx +++ b/sc/source/core/opencl/op_financial.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SC_SOURCE_CORE_OPENCL_OP_FINANCIAL_HXX -#define INCLUDED_SC_SOURCE_CORE_OPENCL_OP_FINANCIAL_HXX +#pragma once #include "opbase.hxx" @@ -577,6 +576,4 @@ public: } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/opencl/op_logical.hxx b/sc/source/core/opencl/op_logical.hxx index 89ce39b72286..2f04cae6a035 100644 --- a/sc/source/core/opencl/op_logical.hxx +++ b/sc/source/core/opencl/op_logical.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SC_SOURCE_CORE_OPENCL_OP_LOGICAL_HXX -#define INCLUDED_SC_SOURCE_CORE_OPENCL_OP_LOGICAL_HXX +#pragma once #include "opbase.hxx" @@ -56,6 +55,4 @@ public: } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/opencl/op_math.hxx b/sc/source/core/opencl/op_math.hxx index 175703d122af..f001d1b78beb 100644 --- a/sc/source/core/opencl/op_math.hxx +++ b/sc/source/core/opencl/op_math.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SC_SOURCE_CORE_OPENCL_OP_MATH_HXX -#define INCLUDED_SC_SOURCE_CORE_OPENCL_OP_MATH_HXX +#pragma once #include "opbase.hxx" @@ -497,6 +496,4 @@ public: } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/opencl/op_spreadsheet.hxx b/sc/source/core/opencl/op_spreadsheet.hxx index f057512c23cd..9045b0e70814 100644 --- a/sc/source/core/opencl/op_spreadsheet.hxx +++ b/sc/source/core/opencl/op_spreadsheet.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SC_SOURCE_CORE_OPENCL_OP_SPREADSHEET_HXX -#define INCLUDED_SC_SOURCE_CORE_OPENCL_OP_SPREADSHEET_HXX +#pragma once #include "opbase.hxx" @@ -25,6 +24,4 @@ public: } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/opencl/op_statistical.hxx b/sc/source/core/opencl/op_statistical.hxx index 557db2b41a38..a77ef71a95a2 100644 --- a/sc/source/core/opencl/op_statistical.hxx +++ b/sc/source/core/opencl/op_statistical.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SC_SOURCE_CORE_OPENCL_OP_STATISTICAL_HXX -#define INCLUDED_SC_SOURCE_CORE_OPENCL_OP_STATISTICAL_HXX +#pragma once #include "opbase.hxx" @@ -548,6 +547,4 @@ public: } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/opencl/opbase.hxx b/sc/source/core/opencl/opbase.hxx index 73a207d74c72..b4a2780f7c0e 100644 --- a/sc/source/core/opencl/opbase.hxx +++ b/sc/source/core/opencl/opbase.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SC_SOURCE_CORE_OPENCL_OPBASE_HXX -#define INCLUDED_SC_SOURCE_CORE_OPENCL_OPBASE_HXX +#pragma once #include <clew/clew.h> #include <formula/token.hxx> @@ -244,6 +243,4 @@ public: } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/opencl/opinlinefun_math.hxx b/sc/source/core/opencl/opinlinefun_math.hxx index 9c53b9f38ca4..dc962b4635f1 100644 --- a/sc/source/core/opencl/opinlinefun_math.hxx +++ b/sc/source/core/opencl/opinlinefun_math.hxx @@ -7,8 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#ifndef INCLUDED_SC_SOURCE_CORE_OPENCL_OPINLINEFUN_MATH_HXX -#define INCLUDED_SC_SOURCE_CORE_OPENCL_OPINLINEFUN_MATH_HXX +#pragma once #include <string> @@ -88,6 +87,4 @@ std::string atan2Content = " return a;\n" "}\n"; -#endif // INCLUDED_SC_SOURCE_CORE_OPENCL_OPINLINEFUN_MATH_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |