summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-25 14:49:14 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-02-25 14:59:07 +0000
commit9bc5d4cdf010091406091875e6c45d975ebc9708 (patch)
tree9c4230d1057242147f5b136de847b1df61cd7117 /vcl
parent2a0ad98ba798a280de649e17fb7212f6b4077917 (diff)
re org things a little to quieten coverity warnings
Change-Id: I3bf0840f6428ee8cefd424a486cc2f5fcfda290f
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/gdi/svgdata.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/vcl/source/gdi/svgdata.cxx b/vcl/source/gdi/svgdata.cxx
index 155844fe7b90..27abb60d9a60 100644
--- a/vcl/source/gdi/svgdata.cxx
+++ b/vcl/source/gdi/svgdata.cxx
@@ -44,10 +44,9 @@ BitmapEx convertPrimitive2DSequenceToBitmapEx(
{
// create replacement graphic from maSequence
// create XPrimitive2DRenderer
- uno::Reference< uno::XComponentContext > xContext(::comphelper::getProcessComponentContext());
-
try
{
+ uno::Reference< uno::XComponentContext > xContext(::comphelper::getProcessComponentContext());
const uno::Reference< graphic::XPrimitive2DRenderer > xPrimitive2DRenderer = graphic::Primitive2DTools::create(xContext);
uno::Sequence< beans::PropertyValue > aViewParameters;
@@ -125,10 +124,9 @@ void SvgData::ensureSequenceAndRange()
if(myInputStream.is())
{
// create SVG interpreter
- uno::Reference< uno::XComponentContext > xContext(::comphelper::getProcessComponentContext());
-
try
{
+ uno::Reference<uno::XComponentContext> xContext(::comphelper::getProcessComponentContext());
const uno::Reference< graphic::XSvgParser > xSvgParser = graphic::SvgTools::create(xContext);
maSequence = comphelper::sequenceToContainer<std::deque<css::uno::Reference< css::graphic::XPrimitive2D >>>(xSvgParser->getDecomposition(myInputStream, maPath));