summaryrefslogtreecommitdiff
path: root/reportdesign
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 /reportdesign
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 'reportdesign')
-rw-r--r--reportdesign/inc/core_resource.hxx3
-rw-r--r--reportdesign/source/core/resource/core_resource.cxx2
2 files changed, 3 insertions, 2 deletions
diff --git a/reportdesign/inc/core_resource.hxx b/reportdesign/inc/core_resource.hxx
index 5d6643b83276..f5d6bfb6e1a7 100644
--- a/reportdesign/inc/core_resource.hxx
+++ b/reportdesign/inc/core_resource.hxx
@@ -22,8 +22,9 @@
#include "dllapi.h"
#include <rtl/ustring.hxx>
+#include <string_view>
-OUString REPORTDESIGN_DLLPUBLIC RptResId(const char* pId);
+OUString REPORTDESIGN_DLLPUBLIC RptResId(std::string_view pId);
#endif // INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_CORE_RESOURCE_HXX
diff --git a/reportdesign/source/core/resource/core_resource.cxx b/reportdesign/source/core/resource/core_resource.cxx
index d809249c9b78..a81ab5e34fae 100644
--- a/reportdesign/source/core/resource/core_resource.cxx
+++ b/reportdesign/source/core/resource/core_resource.cxx
@@ -19,6 +19,6 @@
#include <core_resource.hxx>
#include <unotools/resmgr.hxx>
-OUString RptResId(const char* pId) { return Translate::get(pId, Translate::Create("rpt")); }
+OUString RptResId(std::string_view aId) { return Translate::get(aId, Translate::Create("rpt")); }
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */