diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-12-22 13:31:36 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-12-22 18:12:23 +0100 |
commit | 32e82f3dc3c42488245bdd813ba4f5f53c59791d (patch) | |
tree | 000e980ef6839c0799e5e0ba65c1a737f68b7a8d /comphelper | |
parent | Use emplace_back instead of push_back (emfio) (diff) | |
download | core-32e82f3dc3c42488245bdd813ba4f5f53c59791d.tar.gz core-32e82f3dc3c42488245bdd813ba4f5f53c59791d.zip |
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')
-rw-r--r-- | comphelper/source/misc/xmlsechelper.cxx | 4 |
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; } |