summaryrefslogtreecommitdiff
path: root/framework
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 /framework
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 'framework')
-rw-r--r--framework/inc/classes/fwkresid.hxx3
-rw-r--r--framework/source/fwe/classes/fwkresid.cxx2
2 files changed, 3 insertions, 2 deletions
diff --git a/framework/inc/classes/fwkresid.hxx b/framework/inc/classes/fwkresid.hxx
index e1a2b9a36b1d..4aacac961019 100644
--- a/framework/inc/classes/fwkresid.hxx
+++ b/framework/inc/classes/fwkresid.hxx
@@ -20,7 +20,8 @@
#pragma once
#include <rtl/ustring.hxx>
+#include <string_view>
-OUString FwkResId(const char* pId);
+OUString FwkResId(std::string_view aId);
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/framework/source/fwe/classes/fwkresid.cxx b/framework/source/fwe/classes/fwkresid.cxx
index 00bc8232370f..9acac0728885 100644
--- a/framework/source/fwe/classes/fwkresid.cxx
+++ b/framework/source/fwe/classes/fwkresid.cxx
@@ -20,6 +20,6 @@
#include <classes/fwkresid.hxx>
#include <unotools/resmgr.hxx>
-OUString FwkResId(const char* pId) { return Translate::get(pId, Translate::Create("fwk")); }
+OUString FwkResId(std::string_view aId) { return Translate::get(aId, Translate::Create("fwk")); }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */