summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-17 19:06:45 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-18 07:20:51 +0000
commit4b9acb48b1ea45c82dbd8df3faa35cabd3bb9b4d (patch)
tree963dde5c91fc5030365b8dcf035bac57e26436f3 /sc/source/core
parent6f54b54ec3dc51fb8824adb08620fde4c70d10f2 (diff)
loplugin:stringadd use more O[U]StringChar
Change-Id: I196e4539ad430a39415eff9d7170b33df7228230 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149062 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/tool/compiler.cxx2
-rw-r--r--sc/source/core/tool/interpr2.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index e242633e84d1..5d74944cf161 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -1623,7 +1623,7 @@ struct ConventionXL_OOX : public ConventionXL_A1
static void makeExternalDocStr( OUStringBuffer& rBuffer, sal_uInt16 nFileId )
{
- rBuffer.append('[').append( static_cast<sal_Int32>(nFileId+1) ).append(']');
+ rBuffer.append("[" + OUString::number( static_cast<sal_Int32>(nFileId+1) ) + "]");
}
};
diff --git a/sc/source/core/tool/interpr2.cxx b/sc/source/core/tool/interpr2.cxx
index 7826522a89bf..52bab34899ff 100644
--- a/sc/source/core/tool/interpr2.cxx
+++ b/sc/source/core/tool/interpr2.cxx
@@ -3029,7 +3029,7 @@ void ScInterpreter::ScRoman()
else
nSteps = nMode;
}
- aRoman.append( pChars[ nIndex ] ).append( pChars[ nIndex2 ] );
+ aRoman.append( OUStringChar(pChars[ nIndex ]) + OUStringChar(pChars[ nIndex2 ]) );
nVal = sal::static_int_cast<sal_uInt16>( nVal + pValues[ nIndex ] );
nVal = sal::static_int_cast<sal_uInt16>( nVal - pValues[ nIndex2 ] );
}