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 /sw/source/uibase | |
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 'sw/source/uibase')
-rw-r--r-- | sw/source/uibase/app/swmodule.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/uibase/app/swmodule.cxx b/sw/source/uibase/app/swmodule.cxx index 1a9622ebbd5f..b0c68b7d72c0 100644 --- a/sw/source/uibase/app/swmodule.cxx +++ b/sw/source/uibase/app/swmodule.cxx @@ -162,14 +162,14 @@ SwModule::SwModule( SfxObjectFactory* pWebFact, } } -OUString SwResId(const char* pId) +OUString SwResId(std::string_view aId) { - return Translate::get(pId, SW_MOD()->GetResLocale()); + return Translate::get(aId, SW_MOD()->GetResLocale()); } -OUString SwResId(const char* pId, int nCardinality) +OUString SwResId(std::string_view aId, int nCardinality) { - return Translate::nget(pId, nCardinality, SW_MOD()->GetResLocale()); + return Translate::nget(aId, nCardinality, SW_MOD()->GetResLocale()); } uno::Reference< scanner::XScannerManager2 > const & |