summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-07-21 09:21:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-07-21 11:01:22 +0200
commitfaa40c022ccee7c28de98472699ca26aa8aa827b (patch)
treef4fc82e0f688d6d9a6b123314e08d977580a31d5 /framework
parent716c5a3c199f52a3d5c67e2c3af7702748b7f685 (diff)
elide some makeStringAndClear() calls
Change-Id: I8636102554a76f2ba3f6297219b40761473a4489 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137285 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/recording/dispatchrecorder.cxx4
-rw-r--r--framework/source/services/urltransformer.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/framework/source/recording/dispatchrecorder.cxx b/framework/source/recording/dispatchrecorder.cxx
index 2afa8926d684..fe81814955f7 100644
--- a/framework/source/recording/dispatchrecorder.cxx
+++ b/framework/source/recording/dispatchrecorder.cxx
@@ -334,7 +334,7 @@ void DispatchRecorder::implts_recordMacro( std::u16string_view aURL,
aArgumentBuffer.append("(");
aArgumentBuffer.append (nValidArgs);
aArgumentBuffer.append(").Value = ");
- aArgumentBuffer.append (sValBuffer.makeStringAndClear());
+ aArgumentBuffer.append (sValBuffer);
aArgumentBuffer.append("\n");
++nValidArgs;
@@ -351,7 +351,7 @@ void DispatchRecorder::implts_recordMacro( std::u16string_view aURL,
aScriptBuffer.append("(");
aScriptBuffer.append (static_cast<sal_Int32>(nValidArgs-1)); // 0 based!
aScriptBuffer.append(") as new com.sun.star.beans.PropertyValue\n");
- aScriptBuffer.append (aArgumentBuffer.makeStringAndClear());
+ aScriptBuffer.append (aArgumentBuffer);
aScriptBuffer.append("\n");
}
diff --git a/framework/source/services/urltransformer.cxx b/framework/source/services/urltransformer.cxx
index b4fd3de16a1a..239aed6dbfa0 100644
--- a/framework/source/services/urltransformer.cxx
+++ b/framework/source/services/urltransformer.cxx
@@ -238,7 +238,7 @@ sal_Bool SAL_CALL URLTransformer::assemble( css::util::URL& aURL )
aURL.Password ,
aURL.Server ,
aURL.Port ,
- aCompletePath.makeStringAndClear() );
+ aCompletePath);
if ( !bResult )
return false;