elide some makeStringAndClear() calls
Change-Id: Id1657c6b9399780c81e8fbf0ff0a71371a66600f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/136185 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
36cf12d449
commit
98cd8e89e6
4 changed files with 4 additions and 4 deletions
|
@ -834,7 +834,7 @@ bool UniversalContentBroker::getContentProviderData(
|
|||
|
||||
OSL_VERIFY(
|
||||
createContentProviderData(
|
||||
aElemBuffer.makeStringAndClear(), xHierNameAccess,
|
||||
aElemBuffer, xHierNameAccess,
|
||||
aInfo));
|
||||
|
||||
rListToFill.push_back( aInfo );
|
||||
|
|
|
@ -217,7 +217,7 @@ namespace
|
|||
[](const util::DateTime& rValue) -> std::string {
|
||||
OUStringBuffer aBuffer;
|
||||
::sax::Converter::convertDateTime( aBuffer, rValue, nullptr );
|
||||
return OUSTR_TO_STDSTR( aBuffer.makeStringAndClear( ) );
|
||||
return OUSTR_TO_STDSTR( aBuffer );
|
||||
});
|
||||
type = libcmis::PropertyType::DateTime;
|
||||
}
|
||||
|
|
|
@ -95,7 +95,7 @@ namespace cmis
|
|||
}
|
||||
}
|
||||
while ( nPos != -1 );
|
||||
sUrl += sEncodedPath.makeStringAndClear();
|
||||
sUrl += sEncodedPath;
|
||||
} else if ( !m_sId.isEmpty( ) )
|
||||
{
|
||||
sUrl += "#" + rtl::Uri::encode( m_sId,
|
||||
|
|
|
@ -221,7 +221,7 @@ void CurlUri::AppendPath(::std::u16string_view const rPath)
|
|||
path.append("/");
|
||||
}
|
||||
path.append(rPath);
|
||||
OString const utf8Path(OUStringToOString(path.makeStringAndClear(), RTL_TEXTENCODING_UTF8));
|
||||
OString const utf8Path(OUStringToOString(path, RTL_TEXTENCODING_UTF8));
|
||||
auto uc = curl_url_set(m_pUrl.get(), CURLUPART_PATH, utf8Path.getStr(), 0);
|
||||
if (uc != CURLUE_OK)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue