summaryrefslogtreecommitdiff
path: root/svx/source/gallery2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-11-26 11:31:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-26 14:29:58 +0100
commit95bd1f66f879caa13484c408b05d05d1e42075ca (patch)
tree05a1696dd33d5770fe3d56026ad7ef286740437b /svx/source/gallery2
parentd9796e597329849a6d360f205c5d36f7838884d8 (diff)
loplugin:stringliteraldefine in svx
Change-Id: I2375ebfe9791c43063ffbc8ddbe1bd365499a576 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125868 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/gallery2')
-rw-r--r--svx/source/gallery2/gallery1.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/gallery2/gallery1.cxx b/svx/source/gallery2/gallery1.cxx
index 3d0892ab011b..f307d4b6f61b 100644
--- a/svx/source/gallery2/gallery1.cxx
+++ b/svx/source/gallery2/gallery1.cxx
@@ -52,7 +52,7 @@
using namespace ::com::sun::star;
-const std::pair<sal_uInt16, const char*> aUnlocalized[] =
+const std::pair<sal_uInt16, rtl::OUStringConstExpr> aUnlocalized[] =
{
{ GALLERY_THEME_HOMEPAGE, RID_GALLERYSTR_THEME_HTMLBUTTONS },
{ GALLERY_THEME_POWERPOINT, RID_GALLERYSTR_THEME_POWERPOINT },
@@ -140,7 +140,7 @@ GalleryThemeEntry::GalleryThemeEntry( bool bCreateUniqueURL,
{
if (aUnlocalized[i].first == nId)
{
- aName = OUString::createFromAscii(aUnlocalized[i].second);
+ aName = aUnlocalized[i].second;
break;
}
}
@@ -180,7 +180,7 @@ std::unique_ptr<GalleryBinaryEngine> GalleryThemeEntry::createGalleryStorageEngi
void GalleryTheme::InsertAllThemes(weld::ComboBox& rListBox)
{
for (size_t i = 0; i < SAL_N_ELEMENTS(aUnlocalized); ++i)
- rListBox.append_text(OUString::createFromAscii(aUnlocalized[i].second));
+ rListBox.append_text(aUnlocalized[i].second);
for (size_t i = 0; i < SAL_N_ELEMENTS(aLocalized); ++i)
rListBox.append_text(SvxResId(aLocalized[i].second));