summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-03-08 22:37:57 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-03-08 22:56:02 -0600
commit403c674b44617597ef14377ff52a004df0e56e02 (patch)
tree0ee1b271448e2333cac3576aa7766a0acbb20b00 /ucb
parentf72078e88759a520e61edb23572fe6c5b918b3a7 (diff)
de-macroize ucb filrset
Change-Id: I48a7aa2eaa5c2694eae0e9139ba7d2f165a195d1
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/file/filrset.cxx53
-rw-r--r--ucb/source/ucp/file/filrset.hxx48
2 files changed, 10 insertions, 91 deletions
diff --git a/ucb/source/ucp/file/filrset.cxx b/ucb/source/ucp/file/filrset.cxx
index 952b0abec57d..e49f5d99d78f 100644
--- a/ucb/source/ucp/file/filrset.cxx
+++ b/ucb/source/ucp/file/filrset.cxx
@@ -107,46 +107,6 @@ sal_Int32 SAL_CALL XResultSet_impl::getMinorError()
void SAL_CALL
-XResultSet_impl::acquire(
- void )
- throw()
-{
- OWeakObject::acquire();
-}
-
-
-void SAL_CALL
-XResultSet_impl::release(
- void )
- throw()
-{
- OWeakObject::release();
-}
-
-
-
-uno::Any SAL_CALL
-XResultSet_impl::queryInterface(
- const uno::Type& rType )
- throw( uno::RuntimeException, std::exception )
-{
- uno::Any aRet = cppu::queryInterface(
- rType,
- (static_cast< lang::XComponent* >(this)),
- (static_cast< lang::XTypeProvider* >(this)),
- (static_cast< lang::XEventListener* >(this)),
- (static_cast< sdbc::XRow* >(this)),
- (static_cast< sdbc::XResultSet* >(this)),
- (static_cast< sdbc::XCloseable* >(this)),
- (static_cast< sdbc::XResultSetMetaDataSupplier* >(this)),
- (static_cast< beans::XPropertySet* >(this)),
- (static_cast< ucb::XContentAccess* >(this)),
- (static_cast< ucb::XDynamicResultSet* >(this)) );
- return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
-}
-
-
-void SAL_CALL
XResultSet_impl::disposing( const lang::EventObject& )
throw( uno::RuntimeException, std::exception )
{
@@ -154,19 +114,6 @@ XResultSet_impl::disposing( const lang::EventObject& )
}
-XTYPEPROVIDER_IMPL_10( XResultSet_impl,
- lang::XTypeProvider,
- lang::XTypeProvider,
- lang::XEventListener,
- sdbc::XRow,
- sdbc::XResultSet,
- XDynamicResultSet,
- sdbc::XCloseable,
- sdbc::XResultSetMetaDataSupplier,
- beans::XPropertySet,
- ucb::XContentAccess )
-
-
void SAL_CALL
XResultSet_impl::addEventListener(
const uno::Reference< lang::XEventListener >& Listener )
diff --git a/ucb/source/ucp/file/filrset.hxx b/ucb/source/ucp/file/filrset.hxx
index 9543e3108c1e..23e1fc709f67 100644
--- a/ucb/source/ucp/file/filrset.hxx
+++ b/ucb/source/ucp/file/filrset.hxx
@@ -20,13 +20,9 @@
#define _FILRSET_HXX_
#include <vector>
-#include <ucbhelper/macros.hxx>
#include <osl/file.hxx>
-#include "osl/mutex.hxx"
-#include <cppuhelper/weak.hxx>
#include <cppuhelper/interfacecontainer.hxx>
-#include <com/sun/star/lang/XTypeProvider.hpp>
#include <com/sun/star/ucb/XContentAccess.hpp>
#include <com/sun/star/sdbc/XCloseable.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
@@ -39,6 +35,7 @@
#include <com/sun/star/beans/Property.hpp>
#include "filrow.hxx"
#include "filnot.hxx"
+#include <cppuhelper/implbase8.hxx>
@@ -46,18 +43,15 @@ namespace fileaccess {
class Notifier;
- class XResultSet_impl
- : public cppu::OWeakObject,
- public com::sun::star::lang::XTypeProvider,
- public com::sun::star::lang::XEventListener,
- public com::sun::star::sdbc::XRow,
- public com::sun::star::sdbc::XResultSet,
- public com::sun::star::ucb::XDynamicResultSet,
- public com::sun::star::sdbc::XCloseable,
- public com::sun::star::sdbc::XResultSetMetaDataSupplier,
- public com::sun::star::beans::XPropertySet,
- public com::sun::star::ucb::XContentAccess,
- public Notifier
+class XResultSet_impl : public Notifier,
+ public cppu::WeakImplHelper8< css::lang::XEventListener,
+ css::sdbc::XRow,
+ css::sdbc::XResultSet,
+ css::ucb::XDynamicResultSet,
+ css::sdbc::XCloseable,
+ css::sdbc::XResultSetMetaDataSupplier,
+ css::beans::XPropertySet,
+ css::ucb::XContentAccess >
{
public:
@@ -102,28 +96,6 @@ namespace fileaccess {
sal_Int32 SAL_CALL CtorSuccess();
sal_Int32 SAL_CALL getMinorError();
- // XInterface
- virtual com::sun::star::uno::Any SAL_CALL
- queryInterface(
- const com::sun::star::uno::Type& aType )
- throw( com::sun::star::uno::RuntimeException, std::exception);
-
- virtual void SAL_CALL
- acquire(
- void )
- throw();
-
- virtual void SAL_CALL
- release(
- void )
- throw();
-
-
- // XTypeProvider
-
- XTYPEPROVIDER_DECL()
-
-
// XEventListener
virtual void SAL_CALL
disposing(