From 0771ac00acc8730f77db76b901724f1513a32723 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 15 Jun 2021 21:12:25 +0200 Subject: 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 --- cui/source/factory/cuiresmgr.cxx | 2 +- cui/source/inc/dialmgr.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'cui/source') diff --git a/cui/source/factory/cuiresmgr.cxx b/cui/source/factory/cuiresmgr.cxx index ae22515bd261..fc6f0d5fd24d 100644 --- a/cui/source/factory/cuiresmgr.cxx +++ b/cui/source/factory/cuiresmgr.cxx @@ -20,6 +20,6 @@ #include #include -OUString CuiResId(const char* pKey) { return Translate::get(pKey, Translate::Create("cui")); } +OUString CuiResId(std::string_view aKey) { return Translate::get(aKey, Translate::Create("cui")); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/cui/source/inc/dialmgr.hxx b/cui/source/inc/dialmgr.hxx index c31fde3a27a3..003941790603 100644 --- a/cui/source/inc/dialmgr.hxx +++ b/cui/source/inc/dialmgr.hxx @@ -21,6 +21,6 @@ #include -OUString CuiResId(const char* pKey); +OUString CuiResId(std::string_view aKey); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit v1.2.3