From 002aab309055b7feeeeeb25c1835b6abe6646729 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 12 Mar 2013 13:37:25 +0200 Subject: fdo#46808, convert sdb::tools::ConnectionTools to new style service already existed, just needed an IDL file Change-Id: I9000cff76056efecf7ac748bcfc6dd5b8e902e65 --- dbaccess/source/core/dataaccess/connection.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/core/dataaccess/connection.cxx b/dbaccess/source/core/dataaccess/connection.cxx index 5fa53ae58541..e243e5ad83e4 100644 --- a/dbaccess/source/core/dataaccess/connection.cxx +++ b/dbaccess/source/core/dataaccess/connection.cxx @@ -32,6 +32,7 @@ #include "sdbcoretools.hxx" #include +#include #include #include #include @@ -756,9 +757,7 @@ void OConnection::impl_loadConnectionTools_throw() Sequence< Any > aArguments( 1 ); aArguments[0] <<= NamedValue( "Connection" , makeAny( Reference< XConnection >( this ) ) ); - m_xConnectionTools.set( - m_aContext->getServiceManager()->createInstanceWithArgumentsAndContext("com.sun.star.sdb.tools.ConnectionTools", aArguments, m_aContext), - UNO_QUERY_THROW ); + m_xConnectionTools = css::sdb::tools::ConnectionTools::create( m_aContext ); } Reference< XTableName > SAL_CALL OConnection::createTableName( ) throw (RuntimeException) -- cgit