diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2015-11-20 21:29:36 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2015-11-28 09:38:52 +0100 |
commit | 9e36549c68ecb4d96c56614df5d9f369db95e128 (patch) | |
tree | 840817925c2bc4e268a73db4cda4eb7322030db3 /dbaccess | |
parent | c7f147900e4a0e2d2fbcf2235a750e62ba9a579b (diff) |
dbaccess: small cleanup
Change-Id: Id0a0aa66ffd5788873fa5dc99fcc1b912c0e90fa
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/core/api/RowSet.cxx | 19 | ||||
-rw-r--r-- | dbaccess/source/core/api/RowSet.hxx | 4 |
2 files changed, 4 insertions, 19 deletions
diff --git a/dbaccess/source/core/api/RowSet.cxx b/dbaccess/source/core/api/RowSet.cxx index 04a7ada7574c..0772ef2e3e1a 100644 --- a/dbaccess/source/core/api/RowSet.cxx +++ b/dbaccess/source/core/api/RowSet.cxx @@ -27,9 +27,7 @@ #include "RowSet.hxx" #include "dbastrings.hrc" #include "sdbcoretools.hxx" -#include "services.hxx" #include "SingleSelectQueryComposer.hxx" -#include "module_dba.hxx" #include "CRowSetColumn.hxx" #include "CRowSetDataColumn.hxx" #include "RowSetCache.hxx" @@ -76,6 +74,7 @@ #include <unotools/syslocale.hxx> #include <tools/debug.hxx> #include <tools/diagnose_ex.h> +#include <tools/solar.h> #include <unotools/configmgr.hxx> using namespace utl; @@ -483,15 +482,10 @@ Any SAL_CALL ORowSet::queryAggregation( const Type& rType ) throw(RuntimeExcepti return aRet; } -OUString ORowSet::getImplementationName_static( ) throw(RuntimeException) -{ - return OUString("com.sun.star.comp.dba.ORowSet"); -} - // css::XServiceInfo -OUString SAL_CALL ORowSet::getImplementationName( ) throw(RuntimeException, std::exception) +OUString SAL_CALL ORowSet::getImplementationName() throw(RuntimeException, std::exception) { - return getImplementationName_static(); + return OUString("com.sun.star.comp.dba.ORowSet"); } sal_Bool SAL_CALL ORowSet::supportsService( const OUString& _rServiceName ) throw(RuntimeException, std::exception) @@ -499,7 +493,7 @@ sal_Bool SAL_CALL ORowSet::supportsService( const OUString& _rServiceName ) thro return cppu::supportsService(this, _rServiceName); } -Sequence< OUString > ORowSet::getSupportedServiceNames_static( ) throw (RuntimeException) +Sequence< OUString > SAL_CALL ORowSet::getSupportedServiceNames() throw(RuntimeException, std::exception) { Sequence< OUString > aSNS( 5 ); aSNS[0] = SERVICE_SDBC_RESULTSET; @@ -510,11 +504,6 @@ Sequence< OUString > ORowSet::getSupportedServiceNames_static( ) throw (Runtime return aSNS; } -Sequence< OUString > SAL_CALL ORowSet::getSupportedServiceNames( ) throw(RuntimeException, std::exception) -{ - return getSupportedServiceNames_static(); -} - // OComponentHelper void SAL_CALL ORowSet::disposing() { diff --git a/dbaccess/source/core/api/RowSet.hxx b/dbaccess/source/core/api/RowSet.hxx index 4e406d163de2..f8d52df8e839 100644 --- a/dbaccess/source/core/api/RowSet.hxx +++ b/dbaccess/source/core/api/RowSet.hxx @@ -267,10 +267,6 @@ namespace dbaccess virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(css::uno::RuntimeException, std::exception) override; virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(css::uno::RuntimeException, std::exception) override; - // css::lang::XServiceInfo - static methods - static css::uno::Sequence< OUString > getSupportedServiceNames_static() throw( css::uno::RuntimeException ); - static OUString getImplementationName_static() throw( css::uno::RuntimeException ); - // OComponentHelper virtual void SAL_CALL disposing() override; |