diff options
Diffstat (limited to 'sc/source/core/tool/compiler.cxx')
-rw-r--r-- | sc/source/core/tool/compiler.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx index 39a70965e205..e86e2d756e78 100644 --- a/sc/source/core/tool/compiler.cxx +++ b/sc/source/core/tool/compiler.cxx @@ -658,7 +658,7 @@ static OUString lcl_makeExternalNameStr(const OUString& rFile, const OUString& r OUStringBuffer aBuf(aFile.getLength() + aName.getLength() + 9); if (bODF) aBuf.append( '['); - aBuf.append( "'" + aFile + "'" + OUStringLiteral1(cSep)); + aBuf.append( "'" ).append( aFile ).append( "'" ).append( OUStringLiteral1(cSep) ); if (bODF) aBuf.append( "$$'" ); aBuf.append( aName); @@ -910,7 +910,7 @@ struct ConventionOOO_A1 : public Convention_A1 else aFile = INetURLObject::decode(rFileName, INetURLObject::DecodeMechanism::Unambiguous); - rBuffer.append("'" + aFile.replaceAll("'", "''") + "'#"); + rBuffer.append("'").append(aFile.replaceAll("'", "''")).append("'#"); if (!rRef.IsTabRel()) rBuffer.append('$'); |