summaryrefslogtreecommitdiff
path: root/comphelper/source
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2023-12-22 13:31:36 +0100
committerJulien Nabet <serval2412@yahoo.fr>2023-12-22 18:12:23 +0100
commit32e82f3dc3c42488245bdd813ba4f5f53c59791d (patch)
tree000e980ef6839c0799e5e0ba65c1a737f68b7a8d /comphelper/source
parent88f9b3f16b3e8c6af230ade1c4d56d09c7579675 (diff)
Use emplace_back instead of push_back (comphelper)
Change-Id: Ie3b033dc159ee3f848afa3e8cbabdbdfd402e644 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161178 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'comphelper/source')
-rw-r--r--comphelper/source/misc/xmlsechelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/comphelper/source/misc/xmlsechelper.cxx b/comphelper/source/misc/xmlsechelper.cxx
index 5b1a438abbea..a96ff6937374 100644
--- a/comphelper/source/misc/xmlsechelper.cxx
+++ b/comphelper/source/misc/xmlsechelper.cxx
@@ -130,7 +130,7 @@ std::vector< std::pair< OUString, OUString> > parseDN(std::u16string_view rRawSt
if (!bInValue)
{
OSL_ASSERT(!sType.empty());
- retVal.push_back(std::make_pair(OUString(sType), sbufValue.makeStringAndClear()));
+ retVal.emplace_back(OUString(sType), sbufValue.makeStringAndClear());
sType = {};
//The next char is the start of the new type
nTypeNameStart = i + 1;
@@ -153,7 +153,7 @@ std::vector< std::pair< OUString, OUString> > parseDN(std::u16string_view rRawSt
if (sbufValue.getLength())
{
OSL_ASSERT(!sType.empty());
- retVal.push_back(std::make_pair(OUString(sType), sbufValue.makeStringAndClear()));
+ retVal.emplace_back(OUString(sType), sbufValue.makeStringAndClear());
}
return retVal;
}