From 335de1a2216523527f2a6a9aef4f5997f775e648 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 21 Apr 2021 20:44:57 +0200 Subject: no need makeStringAndClear() when appending to buffer it just creates an unnecessary temporary Change-Id: Ide3cd99b2ac4f2a621e5d55ce4bdc95d05430709 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114467 Tested-by: Jenkins Reviewed-by: Noel Grandin --- forms/source/xforms/submission/submission_get.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'forms') diff --git a/forms/source/xforms/submission/submission_get.cxx b/forms/source/xforms/submission/submission_get.cxx index 956876199b3c..22825328b6cd 100644 --- a/forms/source/xforms/submission/submission_get.cxx +++ b/forms/source/xforms/submission/submission_get.cxx @@ -80,7 +80,7 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const css::uno::Reference< if (!aQueryString.isEmpty() && m_aURLObj.GetProtocol() != INetProtocol::File) { aUTF8QueryURL.append('?'); - aUTF8QueryURL.append(aQueryString.makeStringAndClear()); + aUTF8QueryURL.append(aQueryString); } OUString aQueryURL = OStringToOUString(aUTF8QueryURL.makeStringAndClear(), RTL_TEXTENCODING_UTF8); ucbhelper::Content aContent(aQueryURL, aEnvironment, m_xContext); -- cgit