summaryrefslogtreecommitdiff
path: root/sc
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 /sc
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 'sc')
-rw-r--r--sc/inc/scresid.hxx4
-rw-r--r--sc/source/ui/app/scdll.cxx8
2 files changed, 6 insertions, 6 deletions
diff --git a/sc/inc/scresid.hxx b/sc/inc/scresid.hxx
index 0be9da0ff5b6..017c7a91c5c8 100644
--- a/sc/inc/scresid.hxx
+++ b/sc/inc/scresid.hxx
@@ -22,7 +22,7 @@
#include <rtl/ustring.hxx>
#include "scdllapi.h"
-OUString SC_DLLPUBLIC ScResId(const char* pId);
-OUString ScResId(const char* pId, int nCardinality);
+OUString SC_DLLPUBLIC ScResId(std::string_view aId);
+OUString ScResId(std::string_view aId, int nCardinality);
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/sc/source/ui/app/scdll.cxx b/sc/source/ui/app/scdll.cxx
index 548ae028853a..2dbebc32f675 100644
--- a/sc/source/ui/app/scdll.cxx
+++ b/sc/source/ui/app/scdll.cxx
@@ -86,14 +86,14 @@
#include <filter.hxx>
#include <scabstdlg.hxx>
-OUString ScResId(const char* pId)
+OUString ScResId(std::string_view aId)
{
- return Translate::get(pId, SC_MOD()->GetResLocale());
+ return Translate::get(aId, SC_MOD()->GetResLocale());
}
-OUString ScResId(const char* pId, int nCardinality)
+OUString ScResId(std::string_view aId, int nCardinality)
{
- return Translate::nget(pId, nCardinality, SC_MOD()->GetResLocale());
+ return Translate::nget(aId, nCardinality, SC_MOD()->GetResLocale());
}
void ScDLL::Init()