summaryrefslogtreecommitdiff
path: root/ucbhelper
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-25 13:46:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-26 06:49:46 +0000
commit47317f041693db1a9d4618a1d9f7dcefe52b2904 (patch)
tree612afa75bf969dc70c7fce9accc17263c5aab5e8 /ucbhelper
parentfe1f1247fad782bdf43322532fdeb1ba9f03135a (diff)
loplugin:expandablemethods in ucb..ucbhelper
Change-Id: I42d077d7ebcfb77447d011644f8d64e80eae69c2 Reviewed-on: https://gerrit.libreoffice.org/30266 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucbhelper')
-rw-r--r--ucbhelper/source/provider/resultset.cxx19
-rw-r--r--ucbhelper/source/provider/resultsethelper.cxx19
2 files changed, 31 insertions, 7 deletions
diff --git a/ucbhelper/source/provider/resultset.cxx b/ucbhelper/source/provider/resultset.cxx
index d8e34acce752..fb6d33239c41 100644
--- a/ucbhelper/source/provider/resultset.cxx
+++ b/ucbhelper/source/provider/resultset.cxx
@@ -270,10 +270,23 @@ XTYPEPROVIDER_IMPL_9( ResultSet,
// XServiceInfo methods.
+OUString SAL_CALL ResultSet::getImplementationName()
+ throw( css::uno::RuntimeException, std::exception )
+{
+ return OUString( "ResultSet" );
+}
+
+sal_Bool SAL_CALL ResultSet::supportsService( const OUString& ServiceName )
+ throw( css::uno::RuntimeException, std::exception )
+{
+ return cppu::supportsService( this, ServiceName );
+}
-XSERVICEINFO_NOFACTORY_IMPL_1( ResultSet,
- OUString("ResultSet"),
- RESULTSET_SERVICE_NAME );
+css::uno::Sequence< OUString > SAL_CALL ResultSet::getSupportedServiceNames()
+ throw( css::uno::RuntimeException, std::exception )
+{
+ return { RESULTSET_SERVICE_NAME };
+}
// XComponent methods.
diff --git a/ucbhelper/source/provider/resultsethelper.cxx b/ucbhelper/source/provider/resultsethelper.cxx
index 98a3a09545f9..37a131011df4 100644
--- a/ucbhelper/source/provider/resultsethelper.cxx
+++ b/ucbhelper/source/provider/resultsethelper.cxx
@@ -100,12 +100,23 @@ XTYPEPROVIDER_IMPL_3( ResultSetImplHelper,
// XServiceInfo methods.
+OUString SAL_CALL ResultSetImplHelper::getImplementationName()
+ throw( css::uno::RuntimeException, std::exception )
+{
+ return OUString( "ResultSetImplHelper" );
+}
-XSERVICEINFO_NOFACTORY_IMPL_1( ResultSetImplHelper,
- OUString(
- "ResultSetImplHelper" ),
- DYNAMICRESULTSET_SERVICE_NAME );
+sal_Bool SAL_CALL ResultSetImplHelper::supportsService( const OUString& ServiceName )
+ throw( css::uno::RuntimeException, std::exception )
+{
+ return cppu::supportsService( this, ServiceName );
+}
+css::uno::Sequence< OUString > SAL_CALL ResultSetImplHelper::getSupportedServiceNames()
+ throw( css::uno::RuntimeException, std::exception )
+{
+ return { DYNAMICRESULTSET_SERVICE_NAME };
+}
// XComponent methods.