summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-30 15:12:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-01 10:46:15 +0200
commit46c2a3688c9ee7f558f75cbe856c26c4b8849b7e (patch)
tree782b141db099812d21c01b0693db178d66b9c965 /starmath
parent044a683e6c8f864d46fe8ebe3ef5c757cbea30a6 (diff)
loplugin:stringadd n sfx2..svl
Change-Id: Iaf1bbe37449d4e0cfa817909d56d4bffe1e5a184 Reviewed-on: https://gerrit.libreoffice.org/79893 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/cfgitem.cxx12
-rw-r--r--starmath/source/symbol.cxx3
2 files changed, 7 insertions, 8 deletions
diff --git a/starmath/source/cfgitem.cxx b/starmath/source/cfgitem.cxx
index b77ba7b2938f..76917500dee0 100644
--- a/starmath/source/cfgitem.cxx
+++ b/starmath/source/cfgitem.cxx
@@ -500,8 +500,8 @@ void SmMathConfig::SetSymbols( const std::vector< SmSym > &rNewSymbols )
OUString aDelim( "/" );
for (const SmSym& rSymbol : rNewSymbols)
{
- OUString aNodeNameDelim( SYMBOL_LIST );
- aNodeNameDelim += aDelim;
+ OUString aNodeNameDelim = SYMBOL_LIST +
+ aDelim;
aNodeNameDelim += rSymbol.GetExportName();
aNodeNameDelim += aDelim;
@@ -652,10 +652,10 @@ void SmMathConfig::SaveFontFormatList()
assert(pFntFmt);
const SmFontFormat aFntFmt(*pFntFmt);
- OUString aNodeNameDelim( FONT_FORMAT_LIST );
- aNodeNameDelim += aDelim;
- aNodeNameDelim += aFntFmtId;
- aNodeNameDelim += aDelim;
+ OUString aNodeNameDelim = FONT_FORMAT_LIST +
+ aDelim +
+ aFntFmtId +
+ aDelim;
const OUString *pName = aNames.getConstArray();
diff --git a/starmath/source/symbol.cxx b/starmath/source/symbol.cxx
index 22f9cdc376b6..63f20c006263 100644
--- a/starmath/source/symbol.cxx
+++ b/starmath/source/symbol.cxx
@@ -228,8 +228,7 @@ void SmSymbolManager::Load()
// now add a %i... symbol to the 'iGreek' set for every symbol found in the 'Greek' set.
const OUString aGreekSymbolSetName(SmLocalizedSymbolData::GetUiSymbolSetName("Greek"));
const SymbolPtrVec_t aGreekSymbols( GetSymbolSet( aGreekSymbolSetName ) );
- OUString aSymbolSetName('i');
- aSymbolSetName += aGreekSymbolSetName;
+ OUString aSymbolSetName = "i" + aGreekSymbolSetName;
size_t nSymbols = aGreekSymbols.size();
for (size_t i = 0; i < nSymbols; ++i)
{