diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-06 12:38:33 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-10-07 08:27:25 +0200 |
commit | 4281599a0430eba3fcad672e0e13edcb32175d7a (patch) | |
tree | c4521a3d6858282ca2281f6a51c19719e1604476 /include | |
parent | e7311cbaba988f96104dcbd96151436a6873e356 (diff) |
loplugin:mergeclasses
Change-Id: If5da1527a048997aec1dbc07afbdddabd2c4168d
Diffstat (limited to 'include')
-rw-r--r-- | include/comphelper/interaction.hxx | 36 |
1 files changed, 10 insertions, 26 deletions
diff --git a/include/comphelper/interaction.hxx b/include/comphelper/interaction.hxx index 7135d991e39b..99e6caf2aa7d 100644 --- a/include/comphelper/interaction.hxx +++ b/include/comphelper/interaction.hxx @@ -36,26 +36,6 @@ namespace comphelper - //= OInteractionSelect - - /** base class for concrete XInteractionContinuation implementations.<p/> - Instances of the classes maintain a flag indicating if the handler was called. - */ - class OInteractionSelect - { - bool m_bSelected : 1; /// indicates if the select event occurred - - protected: - OInteractionSelect() : m_bSelected(false) { } - - public: - /// determines whether or not this handler was selected - bool wasSelected() const { return m_bSelected; } - protected: - void implSelected() { m_bSelected = true; } - }; - - //= OInteraction /** template for instantiating concret interaction handlers<p/> @@ -63,21 +43,25 @@ namespace comphelper */ template <class INTERACTION> class OInteraction - :public ::cppu::WeakImplHelper< INTERACTION > - ,public OInteractionSelect + : public ::cppu::WeakImplHelper< INTERACTION > { public: - OInteraction() { } + OInteraction() : m_bSelected(false) {} + + /// determines whether or not this handler was selected + bool wasSelected() const { return m_bSelected; } - // XInteractionContinuation - virtual void SAL_CALL select( ) throw(::com::sun::star::uno::RuntimeException) SAL_OVERRIDE; + // XInteractionContinuation + virtual void SAL_CALL select() throw(::com::sun::star::uno::RuntimeException) SAL_OVERRIDE; + private: + bool m_bSelected : 1; /// indicates if the select event occurred }; template <class INTERACTION> void SAL_CALL OInteraction< INTERACTION >::select( ) throw(::com::sun::star::uno::RuntimeException) { - implSelected(); + m_bSelected = true; } |