summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-06-01 15:15:25 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-06-06 10:53:34 +0200
commit0fcd1a73f0e1ec564f3c6da1ccd890183d3c18db (patch)
tree3895ecd6f804b8f3ef3a8f03f1739e17918feeef /chart2
parent8a95074eaefd01621dc55db8567b19c8e6157f95 (diff)
fdo#46808, Adapt UNO services to new style, Part 7, updating ::create
Update code to use factory method URLTransformer::create Change-Id: I3fd2e838497bcfd8fc949615c0e7d60a6ea47118 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/CommandDispatch.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/chart2/source/controller/main/CommandDispatch.cxx b/chart2/source/controller/main/CommandDispatch.cxx
index bf3d996b201b..8940686b12e8 100644
--- a/chart2/source/controller/main/CommandDispatch.cxx
+++ b/chart2/source/controller/main/CommandDispatch.cxx
@@ -30,6 +30,7 @@
#include "CommandDispatch.hxx"
#include "CommonFunctors.hxx"
#include "macros.hxx"
+#include <com/sun/star/util/URLTransformer.hpp>
#include <algorithm>
#include <functional>
@@ -155,14 +156,9 @@ void CommandDispatch::fireStatusEventForURL(
aURL.Complete = rURL;
if( !m_xURLTransformer.is())
{
- m_xURLTransformer.set(
- m_xContext->getServiceManager()->createInstanceWithContext(
- C2U( "com.sun.star.util.URLTransformer" ),
- m_xContext ),
- uno::UNO_QUERY );
+ m_xURLTransformer.set( util::URLTransformer::create(m_xContext) );
}
- if( m_xURLTransformer.is())
- m_xURLTransformer->parseStrict( aURL );
+ m_xURLTransformer->parseStrict( aURL );
frame::FeatureStateEvent aEventToSend(
static_cast< cppu::OWeakObject* >( this ), // Source