svx/source/xoutdev/xtable.cxx |   20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

New commits:
commit 764f944d55cd21cb9ace6b51e8e173b7a4acd21d
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Wed May 1 20:35:27 2024 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Thu May 2 08:20:46 2024 +0200

    use more OUString in XPropertyList
    
    Change-Id: I775f75c2e56bff36d6de8ddb298d30ffd93a7da4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166976
    Tested-by: Noel Grandin <noel.gran...@collabora.co.uk>
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/svx/source/xoutdev/xtable.cxx b/svx/source/xoutdev/xtable.cxx
index e640c18b64e9..e842e5e854cc 100644
--- a/svx/source/xoutdev/xtable.cxx
+++ b/svx/source/xoutdev/xtable.cxx
@@ -369,15 +369,15 @@ XPropertyList::CreatePropertyListFromURL( 
XPropertyListType t,
 
 struct {
     XPropertyListType t;
-    const char *pExt;
-} const pExtnMap[] = {
-    { XPropertyListType::Color,    "soc" },
-    { XPropertyListType::LineEnd, "soe" },
-    { XPropertyListType::Dash,     "sod" },
-    { XPropertyListType::Hatch,    "soh" },
-    { XPropertyListType::Gradient, "sog" },
-    { XPropertyListType::Bitmap,   "sob" },
-    { XPropertyListType::Pattern,  "sop"}
+    OUString aExt;
+} constexpr pExtnMap[] = {
+    { XPropertyListType::Color,    u"soc"_ustr },
+    { XPropertyListType::LineEnd, u"soe"_ustr },
+    { XPropertyListType::Dash,     u"sod"_ustr },
+    { XPropertyListType::Hatch,    u"soh"_ustr },
+    { XPropertyListType::Gradient, u"sog"_ustr },
+    { XPropertyListType::Bitmap,   u"sob"_ustr },
+    { XPropertyListType::Pattern,  u"sop"_ustr}
 };
 
 OUString XPropertyList::GetDefaultExt( XPropertyListType t )
@@ -385,7 +385,7 @@ OUString XPropertyList::GetDefaultExt( XPropertyListType t )
     for (const auto & i : pExtnMap)
     {
         if( i.t == t )
-            return OUString::createFromAscii( i.pExt );
+            return i.aExt;
     }
     return OUString();
 }

Reply via email to