diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-11-25 10:38:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-11-26 21:20:40 +0100 |
commit | 196b62a9730ef6c57215058a2ab2d7f6782f4768 (patch) | |
tree | 20f90891c15647b5ac3bfdbb57c0795924f65e96 | |
parent | 5eab437c406a2e445baf174bf2c2ad21e663ef2e (diff) |
use a better conversion to OUString
Change-Id: I4a133c054700f72770380214cc794a691edac54e
Reviewed-on: https://gerrit.libreoffice.org/83741
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | cui/source/customize/SvxNotebookbarConfigPage.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cui/source/customize/SvxNotebookbarConfigPage.cxx b/cui/source/customize/SvxNotebookbarConfigPage.cxx index 77ea904249f4..d49abb3eb951 100644 --- a/cui/source/customize/SvxNotebookbarConfigPage.cxx +++ b/cui/source/customize/SvxNotebookbarConfigPage.cxx @@ -65,12 +65,7 @@ static bool isCategoryAvailable(const OUString& sClassId, const OUString& sUIIte static OUString charToString(const char* cString) { - OUStringBuffer aString; - for (std::size_t i = 0; i < strlen(cString); i++) - { - aString.append(cString[i]); - } - return aString.makeStringAndClear(); + return OUString(cString, strlen(cString), RTL_TEXTENCODING_UTF8); } static OUString getFileName(const OUString& aFileName) |