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 --- desktop/inc/dp_shared.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/inc/dp_shared.hxx b/desktop/inc/dp_shared.hxx index 121bfd430fb5..0db47190c48c 100644 --- a/desktop/inc/dp_shared.hxx +++ b/desktop/inc/dp_shared.hxx @@ -33,9 +33,9 @@ struct DeploymentLocale : } // namespace dp -inline OUString DpResId(const char* pId) +inline OUString DpResId(std::string_view aId) { - return Translate::get(pId, dp::DeploymentLocale::get()); + return Translate::get(aId, dp::DeploymentLocale::get()); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit