summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-08-21 08:07:58 +0200
committerStephan Bergmann <sbergman@redhat.com>2012-08-27 15:40:07 +0200
commit8638f1e72a3fe830c0e8dcc1bd847d4fb9e599ee (patch)
treed398e9c43b4dd1570145210690a75762d81f4dc4 /connectivity
parent4381f3dd5ae9e042840a16f69d07267208160420 (diff)
fdo#46808, Adapt script::Converter service code to new style
Change-Id: I19b3ba7c978e02ce865360f0411007525012149c
Diffstat (limited to 'connectivity')
-rw-r--r--connectivity/source/drivers/postgresql/pq_connection.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_connection.cxx b/connectivity/source/drivers/postgresql/pq_connection.cxx
index 209ca09dce31..1b63c7d7e540 100644
--- a/connectivity/source/drivers/postgresql/pq_connection.cxx
+++ b/connectivity/source/drivers/postgresql/pq_connection.cxx
@@ -82,6 +82,7 @@
#include <cppuhelper/implbase1.hxx>
#include <com/sun/star/beans/PropertyValue.hpp>
+#include <com/sun/star/script/Converter.hpp>
#include <com/sun/star/sdbc/XRow.hpp>
using rtl::OUStringBuffer;
@@ -97,6 +98,7 @@ using com::sun::star::lang::XComponent;
using com::sun::star::lang::XInitialization;
using com::sun::star::lang::IllegalArgumentException;
+using com::sun::star::script::Converter;
using com::sun::star::script::XTypeConverter;
using com::sun::star::uno::RuntimeException;
@@ -543,9 +545,7 @@ void Connection::initialize( const Sequence< Any >& aArguments )
OUString url;
Sequence< PropertyValue > args;
- Reference< XTypeConverter > tc( m_ctx->getServiceManager()->createInstanceWithContext(
- OUString( RTL_CONSTASCII_USTRINGPARAM( "com.sun.star.script.Converter" ) ), m_ctx ),
- UNO_QUERY);
+ Reference< XTypeConverter > tc( Converter::create(m_ctx) );
if( ! tc.is() )
{
throw RuntimeException(