framework/source/uiconfiguration/CommandImageResolver.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
New commits: commit 89d35be82851d820f36e31ac1866b1d58be0aa07 Author: Noel Grandin <[email protected]> AuthorDate: Wed May 8 10:01:08 2024 +0200 Commit: Noel Grandin <[email protected]> CommitDate: Sat May 11 15:04:15 2024 +0200 replace createFromAscii with OUString literals in CommandImageResolver Change-Id: I668062d2e6e220be16e3aa74b01db281d54876ea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167511 Reviewed-by: Noel Grandin <[email protected]> Tested-by: Jenkins diff --git a/framework/source/uiconfiguration/CommandImageResolver.cxx b/framework/source/uiconfiguration/CommandImageResolver.cxx index a431ae320b35..e6c0c8ba850d 100644 --- a/framework/source/uiconfiguration/CommandImageResolver.cxx +++ b/framework/source/uiconfiguration/CommandImageResolver.cxx @@ -21,11 +21,11 @@ namespace vcl namespace { -const o3tl::enumarray<ImageType, const char*> ImageType_Prefixes = +constexpr o3tl::enumarray<ImageType, OUString> ImageType_Prefixes { - "cmd/sc_", - "cmd/lc_", - "cmd/32/" + u"cmd/sc_"_ustr, + u"cmd/lc_"_ustr, + u"cmd/32/"_ustr }; OUString lclConvertToCanonicalName(const OUString& rFileName) @@ -129,7 +129,7 @@ ImageList* CommandImageResolver::getImageList(ImageType nImageType) if (!m_pImageList[nImageType]) { - OUString sIconPath = OUString::createFromAscii(ImageType_Prefixes[nImageType]); + OUString sIconPath = ImageType_Prefixes[nImageType]; m_pImageList[nImageType].reset( new ImageList(m_aImageNameVector, sIconPath) ); }
