diff options
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/inc/ResId.hxx | 3 | ||||
-rw-r--r-- | chart2/source/tools/ResId.cxx | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/chart2/source/inc/ResId.hxx b/chart2/source/inc/ResId.hxx index bb057866118f..91dc561e2cb9 100644 --- a/chart2/source/inc/ResId.hxx +++ b/chart2/source/inc/ResId.hxx @@ -20,10 +20,11 @@ #include <rtl/ustring.hxx> #include "charttoolsdllapi.hxx" +#include <string_view> namespace chart { -OUString OOO_DLLPUBLIC_CHARTTOOLS SchResId(const char* pId); +OUString OOO_DLLPUBLIC_CHARTTOOLS SchResId(std::string_view aId); } // namespace chart diff --git a/chart2/source/tools/ResId.cxx b/chart2/source/tools/ResId.cxx index 850eb9b84dd7..7a19075a57b3 100644 --- a/chart2/source/tools/ResId.cxx +++ b/chart2/source/tools/ResId.cxx @@ -22,9 +22,9 @@ namespace chart { - OUString SchResId(const char *pId) + OUString SchResId(std::string_view aId) { - return Translate::get(pId, Translate::Create("chart")); + return Translate::get(aId, Translate::Create("chart")); } } // namespace chart |