diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-07-29 15:08:21 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-08-02 14:43:58 +0200 |
commit | 1597cc5b3e07dd24cb4cb10b35b1e93545e4b929 (patch) | |
tree | f6ed37244e41d23e8a84327b1580e37f3dc18829 /starmath | |
parent | 0e883d6dbee8d72257f77605ae0c8a1d5bfbf044 (diff) |
convert #defines to OUStringLiteral
mostly by doing
$ git grep -l '#define.*\"' -- *.cxx
| xargs perl -pi -e
's/^#define\s+(\w+)\s+(\".*\")/constexpr OUStringLiteral \1 =
u\2;/g'
Change-Id: Idface893449b0ef2a3c5254865a300585d752fbb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119669
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/cfgitem.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx index 9b86a972a877..ce765f09a7d7 100644 --- a/starmath/source/cfgitem.cxx +++ b/starmath/source/cfgitem.cxx @@ -43,8 +43,8 @@ using namespace com::sun::star::uno; using namespace com::sun::star::beans; -#define SYMBOL_LIST "SymbolList" -#define FONT_FORMAT_LIST "FontFormatList" +constexpr OUStringLiteral SYMBOL_LIST = u"SymbolList"; +constexpr OUStringLiteral FONT_FORMAT_LIST = u"FontFormatList"; static Sequence< OUString > lcl_GetFontPropertyNames() { @@ -483,7 +483,7 @@ void SmMathConfig::GetSymbols( std::vector< SmSym > &rSymbols ) const rSymbols.resize( nNodes ); for (auto& rSymbol : rSymbols) { - ReadSymbol( rSymbol, *pNode++, u"" SYMBOL_LIST ); + ReadSymbol( rSymbol, *pNode++, SYMBOL_LIST ); } } @@ -567,7 +567,7 @@ void SmMathConfig::LoadFontFormatList() for (const OUString& rNode : aNodes) { SmFontFormat aFntFmt; - ReadFontFormat( aFntFmt, rNode, u"" FONT_FORMAT_LIST ); + ReadFontFormat( aFntFmt, rNode, FONT_FORMAT_LIST ); if (!pFontFormatList->GetFontFormat( rNode )) pFontFormatList->AddFontFormat( rNode, aFntFmt ); } |