diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-10-13 08:44:49 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-10-15 21:15:49 +0200 |
commit | b4844c310bd9897fef59e8a4da0513100ea86096 (patch) | |
tree | 379a43d012894ff06d29d79c7d4d8009b7853501 /sdext/source | |
parent | 8797ba5e5d63151837ba443e1aea9d0997b6b7ab (diff) |
Repurpose loplugin:stringstatic for O[U]String vars that can be constexpr
...now that warning about O[U]String vars that could be O[U]StringLiteral is no
longer useful
Change-Id: I389e72038171f28482049b41f6224257dd11f452
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157992
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sdext/source')
-rw-r--r-- | sdext/source/pdfimport/inc/wrapper.hxx | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/sdext/source/pdfimport/inc/wrapper.hxx b/sdext/source/pdfimport/inc/wrapper.hxx index 94cc2b24327d..a27e92e28931 100644 --- a/sdext/source/pdfimport/inc/wrapper.hxx +++ b/sdext/source/pdfimport/inc/wrapper.hxx @@ -53,39 +53,39 @@ namespace pdfi css::uno::XComponentContext >& xContext, const OUString& rFilterOptions ); - const OUString fontAttributesSuffixes[] = { + constexpr OUString fontAttributesSuffixes[] = { // Note: for performance consideration, each one listed here is evaluated once, // and they are checked from the suffix, thus the order matters. // e.g. for "TimesNewRomanPS-BoldItalic", to get "TimesNewRoman", you should // first have "Italic", and then "Bold", then "-", and then "PS". - "-VKana", - "MT", - "PS", - "PSMT", - "Regular", - "Normal", - "Book", - "Medium", - "ExtraBold", - "UltraBold", - "ExtraLight", - "UltraLight", - "Bold", - "Heavy", - "Black", - "Italic", - "Oblique", - "Bold", //BoldItalic, BoldOblique - "Light", - "Thin", - "Semibold", - "-Roman", - "Reg", - "VKana", - "-", - ",", - ";", - "PS", // e.g. TimesNewRomanPS-BoldMT + u"-VKana"_ustr, + u"MT"_ustr, + u"PS"_ustr, + u"PSMT"_ustr, + u"Regular"_ustr, + u"Normal"_ustr, + u"Book"_ustr, + u"Medium"_ustr, + u"ExtraBold"_ustr, + u"UltraBold"_ustr, + u"ExtraLight"_ustr, + u"UltraLight"_ustr, + u"Bold"_ustr, + u"Heavy"_ustr, + u"Black"_ustr, + u"Italic"_ustr, + u"Oblique"_ustr, + u"Bold"_ustr, //BoldItalic, BoldOblique + u"Light"_ustr, + u"Thin"_ustr, + u"Semibold"_ustr, + u"-Roman"_ustr, + u"Reg"_ustr, + u"VKana"_ustr, + u"-"_ustr, + u","_ustr, + u";"_ustr, + u"PS"_ustr, // e.g. TimesNewRomanPS-BoldMT }; } |