diff options
Diffstat (limited to 'formula')
-rw-r--r-- | formula/inc/core_resource.hxx | 3 | ||||
-rw-r--r-- | formula/source/core/resource/core_resource.cxx | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/formula/inc/core_resource.hxx b/formula/inc/core_resource.hxx index a1533f1b5186..f8943f603999 100644 --- a/formula/inc/core_resource.hxx +++ b/formula/inc/core_resource.hxx @@ -21,7 +21,8 @@ #include <rtl/ustring.hxx> #include <formula/formuladllapi.h> +#include <string_view> -FORMULA_DLLPUBLIC OUString ForResId(const char* pId); +FORMULA_DLLPUBLIC OUString ForResId(std::string_view aId); /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/formula/source/core/resource/core_resource.cxx b/formula/source/core/resource/core_resource.cxx index b9e1347f0b5a..6a0943aba18f 100644 --- a/formula/source/core/resource/core_resource.cxx +++ b/formula/source/core/resource/core_resource.cxx @@ -19,6 +19,6 @@ #include <unotools/resmgr.hxx> #include <core_resource.hxx> -OUString ForResId(const char* pId) { return Translate::get(pId, Translate::Create("for")); } +OUString ForResId(std::string_view aId) { return Translate::get(aId, Translate::Create("for")); } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |