summaryrefslogtreecommitdiff
path: root/extensions/source/propctrlr
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 /extensions/source/propctrlr
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 'extensions/source/propctrlr')
-rw-r--r--extensions/source/propctrlr/modulepcr.cxx2
-rw-r--r--extensions/source/propctrlr/modulepcr.hxx3
2 files changed, 3 insertions, 2 deletions
diff --git a/extensions/source/propctrlr/modulepcr.cxx b/extensions/source/propctrlr/modulepcr.cxx
index 74d4b5daff7c..67a6e198b27e 100644
--- a/extensions/source/propctrlr/modulepcr.cxx
+++ b/extensions/source/propctrlr/modulepcr.cxx
@@ -23,7 +23,7 @@
namespace pcr
{
-OUString PcrRes(const char* pId) { return Translate::get(pId, Translate::Create("pcr")); }
+OUString PcrRes(std::string_view aId) { return Translate::get(aId, Translate::Create("pcr")); }
} // namespace pcr
diff --git a/extensions/source/propctrlr/modulepcr.hxx b/extensions/source/propctrlr/modulepcr.hxx
index edfef48d8e29..c8eed78eef32 100644
--- a/extensions/source/propctrlr/modulepcr.hxx
+++ b/extensions/source/propctrlr/modulepcr.hxx
@@ -20,10 +20,11 @@
#pragma once
#include <rtl/ustring.hxx>
+#include <string_view>
namespace pcr
{
-OUString PcrRes(const char* pId);
+OUString PcrRes(std::string_view pId);
} // namespace pcr
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */