summaryrefslogtreecommitdiff
path: root/svgio/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-09-12 12:00:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-09-12 13:15:40 +0200
commit48b200a0a2aa70a7dfc0aad8a4964690ae11d42e (patch)
treec23ca5f8d827ba2e99783d80fac21073dd242147 /svgio/source
parent65b756f6058697ccb787506c3cc32e1e818bcc37 (diff)
clang-tidy modernize-use-emplace in svgio..svtools
Change-Id: I4f3b0762e197d5397e723aba1dc43e3c857be145 Reviewed-on: https://gerrit.libreoffice.org/42193 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svgio/source')
-rw-r--r--svgio/source/svgreader/svgdocumenthandler.cxx2
-rw-r--r--svgio/source/svgreader/svggradientnode.cxx5
2 files changed, 3 insertions, 4 deletions
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
{