summaryrefslogtreecommitdiff
path: root/scaddins/source/pricing
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2021-06-15 21:12:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-06-17 14:32:11 +0200
commit0771ac00acc8730f77db76b901724f1513a32723 (patch)
tree8af934c3f11e452bc8ef8941fd284cdc9cdbab5c /scaddins/source/pricing
parent0d97abc8ef890b2e2ead34c449f2a140e22dd5ee (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/source/pricing')
-rw-r--r--scaddins/source/pricing/pricing.cxx4
-rw-r--r--scaddins/source/pricing/pricing.hxx2
2 files changed, 3 insertions, 3 deletions
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;