summaryrefslogtreecommitdiff
path: root/basctl
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 /basctl
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 'basctl')
-rw-r--r--basctl/source/basicide/iderdll.cxx4
-rw-r--r--basctl/source/inc/iderid.hxx3
2 files changed, 4 insertions, 3 deletions
diff --git a/basctl/source/basicide/iderdll.cxx b/basctl/source/basicide/iderdll.cxx
index cdcfdf24c1a8..a6f3abd68edb 100644
--- a/basctl/source/basicide/iderdll.cxx
+++ b/basctl/source/basicide/iderdll.cxx
@@ -105,9 +105,9 @@ ExtraData* GetExtraData()
return nullptr;
}
-OUString IDEResId(const char *pId)
+OUString IDEResId(std::string_view aId)
{
- return Translate::get(pId, SfxApplication::GetModule(SfxToolsModule::Basic)->GetResLocale());
+ return Translate::get(aId, SfxApplication::GetModule(SfxToolsModule::Basic)->GetResLocale());
}
namespace
diff --git a/basctl/source/inc/iderid.hxx b/basctl/source/inc/iderid.hxx
index 5d18586079e5..254d481ad614 100644
--- a/basctl/source/inc/iderid.hxx
+++ b/basctl/source/inc/iderid.hxx
@@ -20,10 +20,11 @@
#pragma once
#include <rtl/ustring.hxx>
+#include <string_view>
namespace basctl
{
-OUString IDEResId(const char* pId);
+OUString IDEResId(std::string_view aId);
} // namespace basctl