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>
This commit is contained in:
Noel Grandin 2022-07-21 09:21:33 +02:00
parent 716c5a3c19
commit faa40c022c
7 changed files with 9 additions and 9 deletions

View file

@ -2533,7 +2533,7 @@ namespace pcr
sTemp.append(rQueryName);
Reference< XNameAccess > xSubQueries(_xQueryNames->getByName(rQueryName),UNO_QUERY);
if ( xSubQueries.is() )
impl_fillQueryNames_throw(xSubQueries,_out_rNames,sTemp.makeStringAndClear());
impl_fillQueryNames_throw(xSubQueries,_out_rNames,sTemp);
else
_out_rNames.push_back( sTemp.makeStringAndClear() );
}

View file

@ -126,7 +126,7 @@ namespace XSLT
//return the base64 string of the uncompressed data
OUStringBuffer buf(oleLength);
::comphelper::Base64::encode(buf, result);
return OUStringToOString(buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US);
return OUStringToOString(buf, RTL_TEXTENCODING_ASCII_US);
}
void
@ -159,7 +159,7 @@ namespace XSLT
//return the base64 encoded string
OUStringBuffer buf(oleLength);
::comphelper::Base64::encode(buf, oledata);
return OUStringToOString(buf.makeStringAndClear(), RTL_TEXTENCODING_ASCII_US);
return OUStringToOString(buf, RTL_TEXTENCODING_ASCII_US);
}
return encodeSubStorage(streamName);
}

View file

@ -79,7 +79,7 @@ CSubmission::SubmissionResult CSubmissionGet::submit(const css::uno::Reference<
aUTF8QueryURL.append('?');
aUTF8QueryURL.append(aQueryString);
}
OUString aQueryURL = OStringToOUString(aUTF8QueryURL.makeStringAndClear(), RTL_TEXTENCODING_UTF8);
OUString aQueryURL = OStringToOUString(aUTF8QueryURL, RTL_TEXTENCODING_UTF8);
ucbhelper::Content aContent(aQueryURL, aEnvironment, m_xContext);
css::uno::Reference< XOutputStream > aPipe( css::io::Pipe::create(m_xContext), UNO_QUERY_THROW );
if (!aContent.openStream(aPipe))

View file

@ -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");
}

View file

@ -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;

View file

@ -499,7 +499,7 @@ static void lcl_formatKoreanLegalWord(sal_Int32 nNumber, OUString& rsResult) {
aTemp.insert(0, (table_KoreanLegalWord_decade1[digit1 - 1]));
if (digit2 > 0)
aTemp.insert(0, (table_KoreanLegalWord_decade2[digit2 - 1]));
rsResult += aTemp.makeStringAndClear();
rsResult += aTemp;
}
// Greek Letter Numbering

View file

@ -470,7 +470,7 @@ OString makeClassPathOption(std::u16string_view sUserClassPath)
sBufCP.append(sAppCP);
}
sPaths = OUStringToOString(sBufCP.makeStringAndClear(), PathEncoding());
sPaths = OUStringToOString(sBufCP, PathEncoding());
if (sPaths.isEmpty()) {
return "";
}