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 --- sfx2/source/appl/module.cxx | 2 +- sfx2/source/bastyp/sfxresid.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sfx2/source') diff --git a/sfx2/source/appl/module.cxx b/sfx2/source/appl/module.cxx index 0825c2430754..787079b09662 100644 --- a/sfx2/source/appl/module.cxx +++ b/sfx2/source/appl/module.cxx @@ -98,7 +98,7 @@ SfxModule::~SfxModule() std::locale SfxModule::GetResLocale() const { - return Translate::Create(pImpl->maResName.getStr()); + return Translate::Create(pImpl->maResName); } SfxSlotPool* SfxModule::GetSlotPool() const diff --git a/sfx2/source/bastyp/sfxresid.cxx b/sfx2/source/bastyp/sfxresid.cxx index 74eb3f4aa0fd..2c60a31fe6e8 100644 --- a/sfx2/source/bastyp/sfxresid.cxx +++ b/sfx2/source/bastyp/sfxresid.cxx @@ -20,6 +20,6 @@ #include #include -OUString SfxResId(const char* pId) { return Translate::get(pId, Translate::Create("sfx")); } +OUString SfxResId(std::string_view aId) { return Translate::get(aId, Translate::Create("sfx")); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit