summaryrefslogtreecommitdiff
path: root/unotools/source/config/fontcfg.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-06-26 16:16:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-06-27 13:10:44 +0200
commite266d448f45348f27f8291ea5d0542747d7c8168 (patch)
tree0d6d14e94d9bf25aeeb4ef21630ee72c10681645 /unotools/source/config/fontcfg.cxx
parent05c6cdb144d1732ca51d463845fa6ddef7c08265 (diff)
loplugin:stringstatic look for more strings
that can be initialised at compile-time instead of runtime Change-Id: I08d516fdc13a3a79f93c079f89ac44cbc7a1ed71 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153620 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'unotools/source/config/fontcfg.cxx')
-rw-r--r--unotools/source/config/fontcfg.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/unotools/source/config/fontcfg.cxx b/unotools/source/config/fontcfg.cxx
index beeba82030d0..26ceda82d5fa 100644
--- a/unotools/source/config/fontcfg.cxx
+++ b/unotools/source/config/fontcfg.cxx
@@ -994,11 +994,11 @@ void FontSubstConfiguration::readLocaleSubst( const OUString& rBcp47 ) const
it->second.aSubstAttributes.reserve( nFonts );
// strings for subst retrieval, construct only once
- OUString const aSubstFontsStr ( "SubstFonts" );
- OUString const aSubstFontsMSStr ( "SubstFontsMS" );
- OUString const aSubstWeightStr ( "FontWeight" );
- OUString const aSubstWidthStr ( "FontWidth" );
- OUString const aSubstTypeStr ( "FontType" );
+ static constexpr OUStringLiteral aSubstFontsStr ( u"SubstFonts" );
+ static constexpr OUStringLiteral aSubstFontsMSStr( u"SubstFontsMS" );
+ static constexpr OUStringLiteral aSubstWeightStr ( u"FontWeight" );
+ static constexpr OUStringLiteral aSubstWidthStr ( u"FontWidth" );
+ static constexpr OUStringLiteral aSubstTypeStr ( u"FontType" );
for( const OUString& rFontName : aFonts )
{
Reference< XNameAccess > xFont;