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 /scaddins | |
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 'scaddins')
-rw-r--r-- | scaddins/inc/analysis.hrc | 5 | ||||
-rw-r--r-- | scaddins/inc/datefunc.hrc | 5 | ||||
-rw-r--r-- | scaddins/inc/pricing.hrc | 5 | ||||
-rw-r--r-- | scaddins/inc/strings.hrc | 5 | ||||
-rw-r--r-- | scaddins/source/analysis/analysis.hxx | 5 | ||||
-rw-r--r-- | scaddins/source/analysis/analysisdefs.hxx | 5 | ||||
-rw-r--r-- | scaddins/source/analysis/analysishelper.hxx | 5 | ||||
-rw-r--r-- | scaddins/source/analysis/bessel.hxx | 5 | ||||
-rw-r--r-- | scaddins/source/analysis/deffuncname.hxx | 5 | ||||
-rw-r--r-- | scaddins/source/datefunc/datefunc.hxx | 5 | ||||
-rw-r--r-- | scaddins/source/datefunc/deffuncname.hxx | 5 | ||||
-rw-r--r-- | scaddins/source/pricing/black_scholes.hxx | 5 | ||||
-rw-r--r-- | scaddins/source/pricing/pricing.hxx | 5 |
13 files changed, 13 insertions, 52 deletions
diff --git a/scaddins/inc/analysis.hrc b/scaddins/inc/analysis.hrc index 99a22d52de90..0657898ac8b2 100644 --- a/scaddins/inc/analysis.hrc +++ b/scaddins/inc/analysis.hrc @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SCADDINS_INC_ANALYSIS_HRC -#define INCLUDED_SCADDINS_INC_ANALYSIS_HRC +#pragma once #define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String) @@ -1101,6 +1100,4 @@ const char* ANALYSIS_Fvschedule[] = NC_("ANALYSIS_Fvschedule", "The schedule") }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scaddins/inc/datefunc.hrc b/scaddins/inc/datefunc.hrc index 89a6d395d150..8bcb9e0ccfb7 100644 --- a/scaddins/inc/datefunc.hrc +++ b/scaddins/inc/datefunc.hrc @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SCADDINS_INC_PRICING_HRC -#define INCLUDED_SCADDINS_INC_PRICING_HRC +#pragma once #define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String) @@ -90,6 +89,4 @@ const char* DATE_FUNCDESC_Rot13[] = NC_("DATE_FUNCDESC_Rot13", "Text to be encrypted or text already encrypted") }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scaddins/inc/pricing.hrc b/scaddins/inc/pricing.hrc index 5a9d18277125..51e2b7898189 100644 --- a/scaddins/inc/pricing.hrc +++ b/scaddins/inc/pricing.hrc @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SCADDINS_INC_PRICING_HRC -#define INCLUDED_SCADDINS_INC_PRICING_HRC +#pragma once #define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String) @@ -119,6 +118,4 @@ const char* PRICING_FUNCDESC_OptProbInMoney[] = NC_("PRICING_FUNCDESC_OptProbInMoney", "Optional (p)ut/(c)all indicator") }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scaddins/inc/strings.hrc b/scaddins/inc/strings.hrc index def666d4344d..359cab32af1e 100644 --- a/scaddins/inc/strings.hrc +++ b/scaddins/inc/strings.hrc @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SCADDINS_INC_STRINGS_HRC -#define INCLUDED_SCADDINS_INC_STRINGS_HRC +#pragma once #define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String) @@ -139,6 +138,4 @@ #define ANALYSIS_FUNCNAME_Convert NC_("ANALYSIS_FUNCNAME_Convert", "CONVERT") #define ANALYSIS_FUNCNAME_Factdouble NC_("ANALYSIS_FUNCNAME_Factdouble", "FACTDOUBLE") -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scaddins/source/analysis/analysis.hxx b/scaddins/source/analysis/analysis.hxx index f595134cfd33..bb72c18fc9e8 100644 --- a/scaddins/source/analysis/analysis.hxx +++ b/scaddins/source/analysis/analysis.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SCADDINS_SOURCE_ANALYSIS_ANALYSIS_HXX -#define INCLUDED_SCADDINS_SOURCE_ANALYSIS_ANALYSIS_HXX +#pragma once #include <com/sun/star/sheet/XAddIn.hpp> @@ -232,6 +231,4 @@ public: virtual double SAL_CALL getFvschedule( double fPrinc, const css::uno::Sequence< css::uno::Sequence< double > >& rSchedule ) override; }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scaddins/source/analysis/analysisdefs.hxx b/scaddins/source/analysis/analysisdefs.hxx index fec9ccc3fb87..09ba5375283e 100644 --- a/scaddins/source/analysis/analysisdefs.hxx +++ b/scaddins/source/analysis/analysisdefs.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SCADDINS_SOURCE_ANALYSIS_ANALYSISDEFS_HXX -#define INCLUDED_SCADDINS_SOURCE_ANALYSIS_ANALYSISDEFS_HXX +#pragma once #include <com/sun/star/lang/IllegalArgumentException.hpp> #include <cmath> @@ -27,6 +26,4 @@ #define CHK_FINITE(d) if( !std::isfinite( d ) ) throw css::lang::IllegalArgumentException() #define RETURN_FINITE(d) if( !std::isfinite( d ) ) throw css::lang::IllegalArgumentException(); return d; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scaddins/source/analysis/analysishelper.hxx b/scaddins/source/analysis/analysishelper.hxx index 6a8c3bb87ab9..df80714034a3 100644 --- a/scaddins/source/analysis/analysishelper.hxx +++ b/scaddins/source/analysis/analysishelper.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_SCADDINS_SOURCE_ANALYSIS_ANALYSISHELPER_HXX -#define INCLUDED_SCADDINS_SOURCE_ANALYSIS_ANALYSISHELPER_HXX +#pragma once #include <com/sun/star/uno/Reference.hxx> @@ -906,6 +905,4 @@ public: } -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scaddins/source/analysis/bessel.hxx b/scaddins/source/analysis/bessel.hxx index 2a3c88c96df4..d42725432e25 100644 --- a/scaddins/source/analysis/bessel.hxx +++ b/scaddins/source/analysis/bessel.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SCADDINS_SOURCE_ANALYSIS_BESSEL_HXX -#define INCLUDED_SCADDINS_SOURCE_ANALYSIS_BESSEL_HXX +#pragma once #include <sal/types.h> @@ -56,6 +55,4 @@ double BesselK(double x, sal_Int32 n); } // namespace sca::analysis -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scaddins/source/analysis/deffuncname.hxx b/scaddins/source/analysis/deffuncname.hxx index ee193e21ef9e..2e92394e6596 100644 --- a/scaddins/source/analysis/deffuncname.hxx +++ b/scaddins/source/analysis/deffuncname.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SCADDINS_SOURCE_ANALYSIS_DEFFUNCTIONNAME_HXX -#define INCLUDED_SCADDINS_SOURCE_ANALYSIS_DEFFUNCTIONNAME_HXX +#pragma once static const char* ANALYSIS_DEFFUNCNAME_Workday[2] = { @@ -626,6 +625,4 @@ static const char* ANALYSIS_DEFFUNCNAME_Factdouble[2] = reinterpret_cast<char const *>(u8"FACTDOUBLE") }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scaddins/source/datefunc/datefunc.hxx b/scaddins/source/datefunc/datefunc.hxx index 666b221b81db..e58f779370e2 100644 --- a/scaddins/source/datefunc/datefunc.hxx +++ b/scaddins/source/datefunc/datefunc.hxx @@ -19,8 +19,7 @@ // date functions add in -#ifndef INCLUDED_SCADDINS_SOURCE_DATEFUNC_DATEFUNC_HXX -#define INCLUDED_SCADDINS_SOURCE_DATEFUNC_DATEFUNC_HXX +#pragma once #include <vector> #include <memory> @@ -186,6 +185,4 @@ public: const OUString& aSrcText ) override; }; -#endif // INCLUDED_SCADDINS_SOURCE_DATEFUNC_DATEFUNC_HXX - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scaddins/source/datefunc/deffuncname.hxx b/scaddins/source/datefunc/deffuncname.hxx index d1d807e3d0f7..493ef9393cb4 100644 --- a/scaddins/source/datefunc/deffuncname.hxx +++ b/scaddins/source/datefunc/deffuncname.hxx @@ -17,8 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -#ifndef INCLUDED_SCADDINS_SOURCE_DATEFUNC_DEFFUNCTIONNAME_HXX -#define INCLUDED_SCADDINS_SOURCE_DATEFUNC_DEFFUNCTIONNAME_HXX +#pragma once static const char* DATE_DEFFUNCNAME_DiffWeeks[2] = { @@ -68,6 +67,4 @@ static const char* DATE_DEFFUNCNAME_Rot13[2] = "ROT13" }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scaddins/source/pricing/black_scholes.hxx b/scaddins/source/pricing/black_scholes.hxx index cdcb20b84182..9e82857e0364 100644 --- a/scaddins/source/pricing/black_scholes.hxx +++ b/scaddins/source/pricing/black_scholes.hxx @@ -11,8 +11,7 @@ */ -#ifndef INCLUDED_SCADDINS_SOURCE_PRICING_BLACK_SCHOLES_HXX -#define INCLUDED_SCADDINS_SOURCE_PRICING_BLACK_SCHOLES_HXX +#pragma once // options prices and greeks in the Black-Scholes model // also known as TV (theoretical value) @@ -144,6 +143,4 @@ double prob_in_money(double S, double vol, double mu, } // namespace sca -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scaddins/source/pricing/pricing.hxx b/scaddins/source/pricing/pricing.hxx index ffc13499831d..0f613ddbe3ee 100644 --- a/scaddins/source/pricing/pricing.hxx +++ b/scaddins/source/pricing/pricing.hxx @@ -24,8 +24,7 @@ // to avoid having to rename all classes to do with UNO // technicalities we use our own namespace -#ifndef INCLUDED_SCADDINS_SOURCE_PRICING_PRICING_HXX -#define INCLUDED_SCADDINS_SOURCE_PRICING_PRICING_HXX +#pragma once #include <vector> @@ -195,6 +194,4 @@ public: }; -#endif - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |