summaryrefslogtreecommitdiff
path: root/sax/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-11 16:43:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-12 08:03:09 +0200
commit65e293f524437a548b6c099bbe6099b56957063c (patch)
treef058b4f61a6f046e71c45814e1a8c0fb749162a9 /sax/source
parentbaa5f32c21185025b64c01fc589c69961528b0c5 (diff)
clang-tidy modernize-use-emplace in package..sax
Change-Id: Ibc0258fd79df987a0e295552bcc5bf89ee12007a Reviewed-on: https://gerrit.libreoffice.org/42173 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sax/source')
-rw-r--r--sax/source/tools/fastattribs.cxx4
-rw-r--r--sax/source/tools/fshelper.cxx4
2 files changed, 4 insertions, 4 deletions
diff --git a/sax/source/tools/fastattribs.cxx b/sax/source/tools/fastattribs.cxx
index 314f156e8dfe..2416a3bb42c7 100644
--- a/sax/source/tools/fastattribs.cxx
+++ b/sax/source/tools/fastattribs.cxx
@@ -110,12 +110,12 @@ void FastAttributeList::addNS( sal_Int32 nNamespaceToken, sal_Int32 nToken, cons
void FastAttributeList::addUnknown( const OUString& rNamespaceURL, const OString& rName, const OString& value )
{
- maUnknownAttributes.push_back( UnknownAttribute( rNamespaceURL, rName, value ) );
+ maUnknownAttributes.emplace_back( rNamespaceURL, rName, value );
}
void FastAttributeList::addUnknown( const OString& rName, const OString& value )
{
- maUnknownAttributes.push_back( UnknownAttribute( rName, value ) );
+ maUnknownAttributes.emplace_back( rName, value );
}
// XFastAttributeList
diff --git a/sax/source/tools/fshelper.cxx b/sax/source/tools/fshelper.cxx
index 1229a8689c29..3875f54df6ca 100644
--- a/sax/source/tools/fshelper.cxx
+++ b/sax/source/tools/fshelper.cxx
@@ -46,11 +46,11 @@ void FastSerializerHelper::startElement(sal_Int32 elementTokenId, FSEND_t)
}
void FastSerializerHelper::pushAttributeValue(sal_Int32 attribute, const char* value)
{
- mpSerializer->getTokenValueList().push_back(TokenValue(attribute, value));
+ mpSerializer->getTokenValueList().emplace_back(attribute, value);
}
void FastSerializerHelper::pushAttributeValue(sal_Int32 attribute, const OString& value)
{
- mpSerializer->getTokenValueList().push_back(TokenValue(attribute, value.getStr()));
+ mpSerializer->getTokenValueList().emplace_back(attribute, value.getStr());
}
void FastSerializerHelper::singleElement(sal_Int32 elementTokenId, FSEND_t)
{