summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/app
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-12-03 14:39:49 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-04 18:27:18 +0100
commit6a1686ba9e51027463733086a62ded7b0641f61a (patch)
treefabc89497f14d4a3a8efb5124b409c8e07f0195f /dbaccess/source/ui/app
parentf1ca4727d517fc49a8fdbdc49629865c51f296ab (diff)
use more OUStringLiteral in dbaccess
and remove some dead defines Change-Id: I432cfbac954ae6798813ca5a31684e66f772acb3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126313 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/app')
-rw-r--r--dbaccess/source/ui/app/AppIconControl.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/app/AppIconControl.cxx b/dbaccess/source/ui/app/AppIconControl.cxx
index ff9e35ab9cd3..1448c401584c 100644
--- a/dbaccess/source/ui/app/AppIconControl.cxx
+++ b/dbaccess/source/ui/app/AppIconControl.cxx
@@ -73,7 +73,7 @@ void OApplicationIconControl::Fill()
{
TranslateId pLabelResId;
ElementType eType;
- const char* aImageResId;
+ rtl::OUStringConstExpr aImageResId;
} aCategories[] = { { RID_STR_TABLES_CONTAINER, E_TABLE, BMP_TABLEFOLDER_TREE_L },
{ RID_STR_QUERIES_CONTAINER, E_QUERY, BMP_QUERYFOLDER_TREE_L },
{ RID_STR_FORMS_CONTAINER, E_FORM, BMP_FORMFOLDER_TREE_L },
@@ -85,7 +85,7 @@ void OApplicationIconControl::Fill()
std::unique_ptr<ThumbnailViewItem> xItem(
new ThumbnailViewItem(*this, aCategorie.eType + 1));
xItem->mbBorder = false;
- xItem->maPreview1 = BitmapEx(OUString::createFromAscii(aCategorie.aImageResId));
+ xItem->maPreview1 = BitmapEx(aCategorie.aImageResId);
const Size& rSize = xItem->maPreview1.GetSizePixel();
m_nMaxWidth = std::max(m_nMaxWidth, rSize.Width());
m_nMaxHeight = std::max(m_nMaxHeight, rSize.Height());