summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-05-07 14:55:32 +0200
committerNoel Grandin <noel@peralex.com>2013-05-08 08:06:45 +0200
commit782bbfc65666272497f9c36a9c59d8b32231aa06 (patch)
tree4a5f93f1f166d25d1e0cb37eba8b8aa4ab143d10 /vcl/source/gdi
parent2c625e036ddaadb71db36f3e44c737b069e6fcb4 (diff)
fdo#46808, Convert graphic::SvgTools to new style
Change-Id: Id195be7968ab256e44271cad00fa8b5cac8698b4
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/svgdata.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/vcl/source/gdi/svgdata.cxx b/vcl/source/gdi/svgdata.cxx
index d5f527c08184..3125e6aa9134 100644
--- a/vcl/source/gdi/svgdata.cxx
+++ b/vcl/source/gdi/svgdata.cxx
@@ -21,7 +21,7 @@
#include <vcl/svgdata.hxx>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <com/sun/star/graphic/XSvgParser.hpp>
+#include <com/sun/star/graphic/SvgTools.hpp>
#include <com/sun/star/graphic/Primitive2DTools.hpp>
#include <com/sun/star/rendering/XIntegerReadOnlyBitmap.hpp>
#include <vcl/canvastools.hxx>
@@ -119,17 +119,13 @@ void SvgData::ensureSequenceAndRange()
if(myInputStream.is())
{
// create SVG interpreter
- uno::Reference< lang::XMultiServiceFactory > xFactory(::comphelper::getProcessServiceFactory());
- const OUString aServiceName("com.sun.star.graphic.SvgTools");
+ uno::Reference< uno::XComponentContext > xContext(::comphelper::getProcessComponentContext());
try
{
- const uno::Reference< graphic::XSvgParser > xSvgParser(xFactory->createInstance(aServiceName), uno::UNO_QUERY_THROW);
+ const uno::Reference< graphic::XSvgParser > xSvgParser = graphic::SvgTools::create(xContext);
- if(xSvgParser.is())
- {
- maSequence = xSvgParser->getDecomposition(myInputStream, maPath);
- }
+ maSequence = xSvgParser->getDecomposition(myInputStream, maPath);
}
catch(const uno::Exception&)
{