summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/webdav-curl/ContentProperties.cxx
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-12-28 15:29:22 +0100
committerJulien Nabet <serval2412@yahoo.fr>2023-12-28 17:12:12 +0100
commitf012065d14f8dc768b1badceef488336751f4a45 (patch)
treed2308be2bc5810ef56499bedb23caf80caf1c088 /ucb/source/ucp/webdav-curl/ContentProperties.cxx
parentdf11ff317de859cad000a50999b48e6a25070be9 (diff)
Use emplace_back instead of push_back (ucb)
Change-Id: I3cef6ad53d4420d259a038058f989cbdc324fb43 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161386 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'ucb/source/ucp/webdav-curl/ContentProperties.cxx')
-rw-r--r--ucb/source/ucp/webdav-curl/ContentProperties.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/ucb/source/ucp/webdav-curl/ContentProperties.cxx b/ucb/source/ucp/webdav-curl/ContentProperties.cxx
index c89710a1eafb..5794282028f6 100644
--- a/ucb/source/ucp/webdav-curl/ContentProperties.cxx
+++ b/ucb/source/ucp/webdav-curl/ContentProperties.cxx
@@ -304,19 +304,19 @@ void ContentProperties::UCBNamesToHTTPNames(
if ( rProp.Name == "DateModified" )
{
- propertyNames.push_back( OUString( "Last-Modified" ) );
+ propertyNames.emplace_back("Last-Modified");
}
else if ( rProp.Name == "MediaType" )
{
- propertyNames.push_back( OUString( "Content-Type" ) );
+ propertyNames.emplace_back("Content-Type");
}
else if ( rProp.Name == "Size" )
{
- propertyNames.push_back( OUString( "Content-Length" ) );
+ propertyNames.emplace_back("Content-Length");
}
else
{
- propertyNames.push_back( rProp.Name );
+ propertyNames.emplace_back(rProp.Name);
}
}
}