summaryrefslogtreecommitdiff
path: root/include/canvas/base/disambiguationhelper.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-12 11:48:17 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-12 16:24:39 +0100
commit268be3ac88bd9572b2402ecdb7bed04038fe6999 (patch)
tree5e6ff301b50af52eac62eddd0ccaea143492e86a /include/canvas/base/disambiguationhelper.hxx
parent781992cebac6415bdd38c78ae48806af156da09f (diff)
Mark overriding DisambiguationHelper class template mem funs as SAL_OVERRIDE
...which reveals that some uses are not derived from XEventListener, so re- introduce BaseMutexHelper as an alternative (which originally got superseded by DisambiguationHelper in 09b546cf9c1d0d9f78066e70a0348c7678cdcb14 "Fix overloaded-virtual warning in canvas"). Change-Id: I1418370733b72526ec481b70fa69f03e7c28b7ce
Diffstat (limited to 'include/canvas/base/disambiguationhelper.hxx')
-rw-r--r--include/canvas/base/disambiguationhelper.hxx21
1 files changed, 10 insertions, 11 deletions
diff --git a/include/canvas/base/disambiguationhelper.hxx b/include/canvas/base/disambiguationhelper.hxx
index 2a19db1a9053..9b07498cb754 100644
--- a/include/canvas/base/disambiguationhelper.hxx
+++ b/include/canvas/base/disambiguationhelper.hxx
@@ -44,9 +44,7 @@ namespace canvas
*/
template< class Base > class DisambiguationHelper : public Base
{
- public:
- typedef Base BaseType;
-
+ protected:
/** Construct DisambiguationHelper
This method is the whole purpose of this template:
@@ -56,23 +54,24 @@ namespace canvas
theirs).
*/
DisambiguationHelper() :
- BaseType( m_aMutex )
+ Base( m_aMutex )
{
}
- virtual void SAL_CALL disposing()
- { disposeThis(); }
-
- virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException)
- { disposeEventSource(Source); }
-
virtual void disposeThis()
{}
virtual void disposeEventSource( const ::com::sun::star::lang::EventObject& ) throw (::com::sun::star::uno::RuntimeException)
{}
-protected:
mutable ::osl::Mutex m_aMutex;
+
+ private:
+ virtual void SAL_CALL disposing() SAL_OVERRIDE
+ { disposeThis(); }
+
+ virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException) SAL_OVERRIDE
+ { disposeEventSource(Source); }
+
};
}