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 --- writerperfect/inc/WPFTResMgr.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'writerperfect') diff --git a/writerperfect/inc/WPFTResMgr.hxx b/writerperfect/inc/WPFTResMgr.hxx index 103b68a985a8..f1825f87b781 100644 --- a/writerperfect/inc/WPFTResMgr.hxx +++ b/writerperfect/inc/WPFTResMgr.hxx @@ -4,6 +4,9 @@ #include -inline OUString WpResId(const char* pId) { return Translate::get(pId, Translate::Create("wpt")); } +inline OUString WpResId(std::string_view aId) +{ + return Translate::get(aId, Translate::Create("wpt")); +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit