diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-04-07 17:26:06 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-04-07 17:27:39 +0200 |
commit | 6ac0e1399a2be344284f192fb3445489346b1fba (patch) | |
tree | c79887c9a1ddf69718f231b1797dc03d06c4fc84 /include/comphelper | |
parent | a8dd89b49ea26d8bfb27feab562191e61d4a7487 (diff) |
Remove silly PUT_SEMICOLON_AT_THE_END
...and rather live with macro calls not terminated by semicolons until those
macros are gone for good anyway. Completely remove unused
DECLARE_UNO3_XCOMPONENT_DEFAULTS.
Change-Id: I0d4eb5a91736004b0da2b09fce860e57f6d1ddbd
Diffstat (limited to 'include/comphelper')
-rw-r--r-- | include/comphelper/uno3.hxx | 53 |
1 files changed, 3 insertions, 50 deletions
diff --git a/include/comphelper/uno3.hxx b/include/comphelper/uno3.hxx index 0bebb9fa91aa..e853590088a1 100644 --- a/include/comphelper/uno3.hxx +++ b/include/comphelper/uno3.hxx @@ -44,8 +44,7 @@ namespace comphelper */ #define DECLARE_UNO3_DEFAULTS(classname, baseclass) \ virtual void SAL_CALL acquire() throw() SAL_OVERRIDE { baseclass::acquire(); } \ - virtual void SAL_CALL release() throw() SAL_OVERRIDE { baseclass::release(); } \ - void SAL_CALL PUT_SEMICOLON_AT_THE_END() + virtual void SAL_CALL release() throw() SAL_OVERRIDE { baseclass::release(); } /** used for declaring UNO3-Defaults, i.e. acquire/release if you want to forward all queryInterfaces to the base class, (e.g. if you overload queryAggregation) @@ -54,50 +53,7 @@ namespace comphelper virtual void SAL_CALL acquire() throw() SAL_OVERRIDE { baseclass::acquire(); } \ virtual void SAL_CALL release() throw() SAL_OVERRIDE { baseclass::release(); } \ virtual ::com::sun::star::uno::Any SAL_CALL queryInterface(const ::com::sun::star::uno::Type& _rType) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE \ - { return baseclass::queryInterface(_rType); } \ - void SAL_CALL PUT_SEMICOLON_AT_THE_END() - - /** Use this macro to forward XComponent methods to base class - - When using the ::cppu::WeakComponentImplHelper base classes to - implement a UNO interface, a problem occurs when the interface - itself already derives from XComponent (like e.g. awt::XWindow - or awt::XControl): ::cppu::WeakComponentImplHelper is then - still abstract. Using this macro in the most derived class - definition provides overrides for the XComponent methods, - forwarding them to the given baseclass. - - @param classname - Name of the class this macro is issued within - - @param baseclass - Name of the baseclass that should have the XInterface methods - forwarded to - that's usually the WeakComponentImplHelperN base - - @param implhelper - Name of the baseclass that should have the XComponent methods - forwarded to - in the case of the WeakComponentImplHelper, - that would be ::cppu::WeakComponentImplHelperBase - */ - #define DECLARE_UNO3_XCOMPONENT_DEFAULTS(classname, baseclass, implhelper) \ - virtual void SAL_CALL acquire() throw() { baseclass::acquire(); } \ - virtual void SAL_CALL release() throw() { baseclass::release(); } \ - virtual void SAL_CALL dispose() throw (::com::sun::star::uno::RuntimeException) \ - { \ - implhelper::dispose(); \ - } \ - virtual void SAL_CALL addEventListener( \ - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > const & xListener ) throw (::com::sun::star::uno::RuntimeException) \ - { \ - implhelper::addEventListener(xListener); \ - } \ - virtual void SAL_CALL removeEventListener( \ - ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > const & xListener ) throw (::com::sun::star::uno::RuntimeException) \ - { \ - implhelper::removeEventListener(xListener); \ - } \ - void SAL_CALL PUT_SEMICOLON_AT_THE_END() - + { return baseclass::queryInterface(_rType); } /** Use this macro to forward XComponent methods to base class @@ -139,10 +95,7 @@ namespace comphelper ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener > const & xListener ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE \ { \ implhelper::removeEventListener(xListener); \ - } \ - void SAL_CALL PUT_SEMICOLON_AT_THE_END() - - + } //= deriving from multiple XInterface-derived classes |