diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-02 15:16:53 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-04 14:15:51 +0200 |
commit | 0ae8de6aeb548d1cb5bbe0071cb2d7e1a279f127 (patch) | |
tree | 13771d1dcee89dfa22e6dd8b478e280909e15646 /sw/source | |
parent | 061d55f8b099adf7ed154df043ffd412bca8f0ed (diff) |
replace createFromAscii with OUString literals in SwPrintOptions
Change-Id: I9c40c4e4f58d45e5c3195cab6dbb40c47b0326d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167113
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/config/prtopt.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sw/source/uibase/config/prtopt.cxx b/sw/source/uibase/config/prtopt.cxx index 52b490ac85c4..6a7f64fd4283 100644 --- a/sw/source/uibase/config/prtopt.cxx +++ b/sw/source/uibase/config/prtopt.cxx @@ -29,29 +29,29 @@ using namespace com::sun::star::uno; // Ctor Sequence<OUString> SwPrintOptions::GetPropertyNames() const { - static const char* aPropNames[] = + static constexpr OUString aPropNames[] = { - "Content/Graphic", // 0 - "Content/Control", // 1 - "Content/Background", // 2 - "Content/PrintBlack", // 3 - "Content/Note", // 4 - "Page/Brochure", // 5 - "Page/BrochureRightToLeft", // 6 - "Output/Fax", // 7 - "Papertray/FromPrinterSetup", // 8 - "Page/LeftPage", // 9 not in SW/Web - "Page/RightPage", // 10 not in SW/Web - "EmptyPages", // 11 not in SW/Web - "Content/PrintPlaceholders", // 12 not in Sw/Web - "Content/PrintHiddenText" // 13 not in Sw/Web + u"Content/Graphic"_ustr, // 0 + u"Content/Control"_ustr, // 1 + u"Content/Background"_ustr, // 2 + u"Content/PrintBlack"_ustr, // 3 + u"Content/Note"_ustr, // 4 + u"Page/Brochure"_ustr, // 5 + u"Page/BrochureRightToLeft"_ustr, // 6 + u"Output/Fax"_ustr, // 7 + u"Papertray/FromPrinterSetup"_ustr, // 8 + u"Page/LeftPage"_ustr, // 9 not in SW/Web + u"Page/RightPage"_ustr, // 10 not in SW/Web + u"EmptyPages"_ustr, // 11 not in SW/Web + u"Content/PrintPlaceholders"_ustr, // 12 not in Sw/Web + u"Content/PrintHiddenText"_ustr // 13 not in Sw/Web }; const int nCount = m_bIsWeb ? 9 : 14; Sequence<OUString> aNames(nCount); OUString* pNames = aNames.getArray(); for(int i = 0; i < nCount; i++) { - pNames[i] = OUString::createFromAscii(aPropNames[i]); + pNames[i] = aPropNames[i]; } return aNames; } |