From 48b200a0a2aa70a7dfc0aad8a4964690ae11d42e Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Sep 2017 12:00:35 +0200 Subject: clang-tidy modernize-use-emplace in svgio..svtools Change-Id: I4f3b0762e197d5397e723aba1dc43e3c857be145 Reviewed-on: https://gerrit.libreoffice.org/42193 Tested-by: Jenkins Reviewed-by: Noel Grandin --- svgio/source/svgreader/svgdocumenthandler.cxx | 2 +- svgio/source/svgreader/svggradientnode.cxx | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'svgio') diff --git a/svgio/source/svgreader/svgdocumenthandler.cxx b/svgio/source/svgreader/svgdocumenthandler.cxx index 208eb90c1634..1ce1e3b55ffd 100644 --- a/svgio/source/svgreader/svgdocumenthandler.cxx +++ b/svgio/source/svgreader/svgdocumenthandler.cxx @@ -350,7 +350,7 @@ namespace svgio { // if it is a Css style, allow reading text between the start and end tag (see // SvgDocHdl::characters for details) - maCssContents.push_back(OUString()); + maCssContents.emplace_back(); } break; } diff --git a/svgio/source/svgreader/svggradientnode.cxx b/svgio/source/svgreader/svggradientnode.cxx index 675a648393d0..81617c8814dc 100644 --- a/svgio/source/svgreader/svggradientnode.cxx +++ b/svgio/source/svgreader/svggradientnode.cxx @@ -289,11 +289,10 @@ namespace svgio fOffset = 1.0; } - aVector.push_back( - drawinglayer::primitive2d::SvgGradientEntry( + aVector.emplace_back( fOffset, pStyle->getStopColor(), - pStyle->getStopOpacity().solve(*this))); + pStyle->getStopOpacity().solve(*this)); } else { -- cgit