diff options
author | Noel Grandin <noel@peralex.com> | 2021-06-15 21:12:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-06-17 14:32:11 +0200 |
commit | 0771ac00acc8730f77db76b901724f1513a32723 (patch) | |
tree | 8af934c3f11e452bc8ef8941fd284cdc9cdbab5c /scaddins | |
parent | 0d97abc8ef890b2e2ead34c449f2a140e22dd5ee (diff) |
use string_view in the Translate API
Change-Id: I0bb0ea9d39ed623928060ffd3f2e2bc36ba33209
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117272
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'scaddins')
-rw-r--r-- | scaddins/source/analysis/analysis.cxx | 4 | ||||
-rw-r--r-- | scaddins/source/analysis/analysis.hxx | 2 | ||||
-rw-r--r-- | scaddins/source/datefunc/datefunc.cxx | 4 | ||||
-rw-r--r-- | scaddins/source/datefunc/datefunc.hxx | 2 | ||||
-rw-r--r-- | scaddins/source/pricing/pricing.cxx | 4 | ||||
-rw-r--r-- | scaddins/source/pricing/pricing.hxx | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/scaddins/source/analysis/analysis.cxx b/scaddins/source/analysis/analysis.cxx index b89fb2137d44..0e92095bb6b1 100644 --- a/scaddins/source/analysis/analysis.cxx +++ b/scaddins/source/analysis/analysis.cxx @@ -1045,9 +1045,9 @@ double SAL_CALL AnalysisAddIn::getConvert( double f, const OUString& aFU, const RETURN_FINITE( fRet ); } -OUString AnalysisAddIn::AnalysisResId(const char* pResId) +OUString AnalysisAddIn::AnalysisResId(std::string_view aResId) { - return Translate::get(pResId, aResLocale); + return Translate::get(aResId, aResLocale); } extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface* diff --git a/scaddins/source/analysis/analysis.hxx b/scaddins/source/analysis/analysis.hxx index bb72c18fc9e8..5a0d31f1b5a2 100644 --- a/scaddins/source/analysis/analysis.hxx +++ b/scaddins/source/analysis/analysis.hxx @@ -73,7 +73,7 @@ public: explicit AnalysisAddIn( const css::uno::Reference< css::uno::XComponentContext >& xContext ); - OUString AnalysisResId(const char* pId); + OUString AnalysisResId(std::string_view aId); virtual ~AnalysisAddIn() override; diff --git a/scaddins/source/datefunc/datefunc.cxx b/scaddins/source/datefunc/datefunc.cxx index 1828679e365e..ba5f4f989627 100644 --- a/scaddins/source/datefunc/datefunc.cxx +++ b/scaddins/source/datefunc/datefunc.cxx @@ -717,9 +717,9 @@ OUString SAL_CALL ScaDateAddIn::getRot13( const OUString& aSrcString ) return aBuffer.makeStringAndClear(); } -OUString ScaDateAddIn::ScaResId(const char* pId) +OUString ScaDateAddIn::ScaResId(std::string_view aId) { - return Translate::get(pId, aResLocale); + return Translate::get(aId, aResLocale); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scaddins/source/datefunc/datefunc.hxx b/scaddins/source/datefunc/datefunc.hxx index e58f779370e2..74113e814ffe 100644 --- a/scaddins/source/datefunc/datefunc.hxx +++ b/scaddins/source/datefunc/datefunc.hxx @@ -120,7 +120,7 @@ private: public: ScaDateAddIn(); - OUString ScaResId(const char* pId); + OUString ScaResId(std::string_view aId); // XAddIn virtual OUString SAL_CALL getProgrammaticFuntionName( const OUString& aDisplayName ) override; diff --git a/scaddins/source/pricing/pricing.cxx b/scaddins/source/pricing/pricing.cxx index b006ae3f9a04..64b01938d0be 100644 --- a/scaddins/source/pricing/pricing.cxx +++ b/scaddins/source/pricing/pricing.cxx @@ -500,9 +500,9 @@ double SAL_CALL ScaPricingAddIn::getOptProbInMoney( double spot, double vol, RETURN_FINITE( fRet ); } -OUString ScaPricingAddIn::ScaResId(const char* pResId) +OUString ScaPricingAddIn::ScaResId(std::string_view aResId) { - return Translate::get(pResId, aResLocale); + return Translate::get(aResId, aResLocale); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/scaddins/source/pricing/pricing.hxx b/scaddins/source/pricing/pricing.hxx index 0f613ddbe3ee..42f23dcc81a6 100644 --- a/scaddins/source/pricing/pricing.hxx +++ b/scaddins/source/pricing/pricing.hxx @@ -140,7 +140,7 @@ public: ScaPricingAddIn(); virtual ~ScaPricingAddIn() override; - OUString ScaResId(const char* pResId); + OUString ScaResId(std::string_view aResId); // XAddIn virtual OUString SAL_CALL getProgrammaticFuntionName( const OUString& aDisplayName ) override; |