Kaydet (Commit) 7ec9ea3c authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

de-macroize QUERYINTERFACE_IMPL_START QUERYINTERFACE_IMPL_END

Change-Id: I152d82e34446111cead4b060f789260552d5920d
üst 10fe4b9f
...@@ -66,12 +66,8 @@ com::sun::star::uno::Any SAL_CALL Class::queryInterface( \ ...@@ -66,12 +66,8 @@ com::sun::star::uno::Any SAL_CALL Class::queryInterface( \
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); \ return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType ); \
} }
// XInterface impl. // XInterface impl.
// 2 interfaces implemented // 2 interfaces implemented
#define XINTERFACE_IMPL_2( Class, Ifc1, Ifc2 ) \ #define XINTERFACE_IMPL_2( Class, Ifc1, Ifc2 ) \
XINTERFACE_COMMON_IMPL( Class ) \ XINTERFACE_COMMON_IMPL( Class ) \
......
...@@ -338,20 +338,21 @@ sal_Bool SAL_CALL ContentResultSetWrapper ...@@ -338,20 +338,21 @@ sal_Bool SAL_CALL ContentResultSetWrapper
// XInterface methods. // XInterface methods.
//list all interfaces inclusive baseclasses of interfaces css::uno::Any SAL_CALL ContentResultSetWrapper::queryInterface( const css::uno::Type & rType )
QUERYINTERFACE_IMPL_START( ContentResultSetWrapper ) throw( css::uno::RuntimeException, std::exception )
{
(static_cast< XComponent* >(this)), //list all interfaces inclusive baseclasses of interfaces
(static_cast< XCloseable* >(this)), css::uno::Any aRet = cppu::queryInterface( rType,
(static_cast< XResultSetMetaDataSupplier* >(this)), (static_cast< XComponent* >(this)),
(static_cast< XPropertySet* >(this)), (static_cast< XCloseable* >(this)),
(static_cast< XResultSetMetaDataSupplier* >(this)),
(static_cast< XContentAccess* >(this)), (static_cast< XPropertySet* >(this)),
(static_cast< XResultSet* >(this)), (static_cast< XContentAccess* >(this)),
(static_cast< XRow* >(this)) (static_cast< XResultSet* >(this)),
(static_cast< XRow* >(this))
QUERYINTERFACE_IMPL_END );
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
// XComponent methods. // XComponent methods.
......
...@@ -121,16 +121,18 @@ void SAL_CALL DynamicResultSetWrapper ...@@ -121,16 +121,18 @@ void SAL_CALL DynamicResultSetWrapper
m_xMyResultTwo = xResultSet; m_xMyResultTwo = xResultSet;
} }
// XInterface methods. // XInterface methods.
css::uno::Any SAL_CALL DynamicResultSetWrapper::queryInterface( const css::uno::Type & rType )
//list all interfaces inclusive baseclasses of interfaces throw( css::uno::RuntimeException, std::exception )
QUERYINTERFACE_IMPL_START( DynamicResultSetWrapper ) {
(static_cast< XComponent* >(this)) //base of XDynamicResultSet //list all interfaces inclusive baseclasses of interfaces
, (static_cast< XDynamicResultSet* >(this)) css::uno::Any aRet = cppu::queryInterface( rType,
, (static_cast< XSourceInitialization* >(this)) (static_cast< XComponent* >(this)), //base of XDynamicResultSet
QUERYINTERFACE_IMPL_END (static_cast< XDynamicResultSet* >(this)),
(static_cast< XSourceInitialization* >(this))
);
return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
}
// XComponent methods. // XComponent methods.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment