From 4a96fb8ec0130e1036913093836bcf28bc37a49b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 16 Oct 2019 10:13:30 +0200 Subject: loplugin:bufferadd loosen some constraints and extend O*StringView to have a constructor that takes a pointer and a length Change-Id: I6120e96280f030757e855a6596efdae438b7e1e8 Reviewed-on: https://gerrit.libreoffice.org/80872 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/filter/excel/xehelper.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sc/source/filter/excel') diff --git a/sc/source/filter/excel/xehelper.cxx b/sc/source/filter/excel/xehelper.cxx index aeffdfa0b4c2..a6e41f742ed8 100644 --- a/sc/source/filter/excel/xehelper.cxx +++ b/sc/source/filter/excel/xehelper.cxx @@ -975,9 +975,7 @@ OUString XclExpUrlHelper::EncodeUrl( const XclExpRoot& rRoot, const OUString& rA OUString XclExpUrlHelper::EncodeDde( const OUString& rApplic, const OUString& rTopic ) { - OUStringBuffer aBuf; - aBuf.append(rApplic).append(EXC_DDE_DELIM).append(rTopic); - return aBuf.makeStringAndClear(); + return rApplic + OUStringLiteral1(EXC_DDE_DELIM) + rTopic; } // Cached Value Lists ========================================================= -- cgit