diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-17 19:06:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-03-18 07:20:51 +0000 |
commit | 4b9acb48b1ea45c82dbd8df3faa35cabd3bb9b4d (patch) | |
tree | 963dde5c91fc5030365b8dcf035bac57e26436f3 /oox | |
parent | 6f54b54ec3dc51fb8824adb08620fde4c70d10f2 (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 'oox')
-rw-r--r-- | oox/source/drawingml/lineproperties.cxx | 4 | ||||
-rw-r--r-- | oox/source/dump/dumperbase.cxx | 4 | ||||
-rw-r--r-- | oox/source/export/vmlexport.cxx | 2 | ||||
-rw-r--r-- | oox/source/ole/vbamodule.cxx | 2 | ||||
-rw-r--r-- | oox/source/vml/vmlinputstream.cxx | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/oox/source/drawingml/lineproperties.cxx b/oox/source/drawingml/lineproperties.cxx index 8e9d676de800..898b5b702161 100644 --- a/oox/source/drawingml/lineproperties.cxx +++ b/oox/source/drawingml/lineproperties.cxx @@ -277,11 +277,11 @@ void lclPushMarkerProperties( ShapePropertyMap& rPropMap, sal_Int32 nWidth = lclGetArrowSize( rArrowProps.moArrowWidth.value_or( XML_med ) ); sal_Int32 nNameIndex = nWidth * 3 + nLength + 1; - aBuffer.append( ' ' ).append( nNameIndex ); + aBuffer.append( " " + OUString::number( nNameIndex )); if (bIsArrow) { // Arrow marker form depends also on line width - aBuffer.append(' ').append(nLineWidth); + aBuffer.append(" " + OUString::number(nLineWidth)); } OUString aMarkerName = aBuffer.makeStringAndClear(); diff --git a/oox/source/dump/dumperbase.cxx b/oox/source/dump/dumperbase.cxx index 497795050f38..0263396928c1 100644 --- a/oox/source/dump/dumperbase.cxx +++ b/oox/source/dump/dumperbase.cxx @@ -267,7 +267,7 @@ void StringHelper::appendHex( OUStringBuffer& rStr, sal_uInt8 nData, bool bPrefi static const sal_Unicode spcHexDigits[] = { '0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F' }; if( bPrefix ) rStr.append( "0x" ); - rStr.append( spcHexDigits[ (nData >> 4) & 0x0F ] ).append( spcHexDigits[ nData & 0x0F ] ); + rStr.append( OUStringChar(spcHexDigits[ (nData >> 4) & 0x0F ] ) + OUStringChar( spcHexDigits[ nData & 0x0F ] ) ); } void StringHelper::appendHex( OUStringBuffer& rStr, sal_Int8 nData, bool bPrefix ) @@ -524,7 +524,7 @@ void StringHelper::appendIndex( OUStringBuffer& rStr, sal_Int64 nIdx ) { OUStringBuffer aToken; appendDec( aToken, nIdx ); - rStr.append( '[' ).append( aToken ).append( ']' ); + rStr.append( "[" + aToken + "]" ); } std::u16string_view StringHelper::getToken( std::u16string_view rData, sal_Int32& rnPos, sal_Unicode cSep ) diff --git a/oox/source/export/vmlexport.cxx b/oox/source/export/vmlexport.cxx index 3a7fb417f2fc..2844be0bc8da 100644 --- a/oox/source/export/vmlexport.cxx +++ b/oox/source/export/vmlexport.cxx @@ -1084,7 +1084,7 @@ void VMLExport::Commit( EscherPropertyContainer& rProps, const tools::Rectangle& buf.append( " ( " ); for ( int nCount = opt.nProp.size(); nCount; --nCount ) { - buf.append( static_cast<sal_Int32>(*pIt), 16 ).append(' '); + buf.append( OString::number(static_cast<sal_Int32>(*pIt), 16) + " "); ++pIt; } buf.append( ")" ); diff --git a/oox/source/ole/vbamodule.cxx b/oox/source/ole/vbamodule.cxx index 6f1682df070b..4bd93cec132c 100644 --- a/oox/source/ole/vbamodule.cxx +++ b/oox/source/ole/vbamodule.cxx @@ -255,7 +255,7 @@ OUString VbaModule::readSourceCode( StorageBase& rVbaStrg ) // normal source code line if( !mbExecutable ) aSourceCode.append( "Rem " ); - aSourceCode.append( aCodeLine ).append( '\n' ); + aSourceCode.append( aCodeLine + "\n" ); } } } diff --git a/oox/source/vml/vmlinputstream.cxx b/oox/source/vml/vmlinputstream.cxx index 4f94207619f2..53cc6b455a14 100644 --- a/oox/source/vml/vmlinputstream.cxx +++ b/oox/source/vml/vmlinputstream.cxx @@ -138,7 +138,7 @@ void lclProcessAttribs( OStringBuffer& rBuffer, const char* pcBeg, const char* p // if no error has occurred, build the resulting attribute list if( bOk ) for (auto const& attrib : aAttributes) - rBuffer.append( ' ' ).append( attrib.second ); + rBuffer.append( " " + attrib.second ); // on error, just append the complete passed string else lclAppendToBuffer( rBuffer, pcBeg, pcEnd ); |