diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-05-09 15:17:58 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-05-09 21:01:58 +0200 |
commit | 6380964c76df2352d2942e6a22d8c1b14e7c1b2e (patch) | |
tree | 115f52ba51745a780f6d133917b9e804905f2db8 /chart2 | |
parent | db9fecd377bbba373ca0818f90182f262f1360da (diff) |
MutexContainer is only used mixin-style in derived classes
...no need for virtual dtor
Change-Id: I843e4bbb8bab3ed1eec55be2b937617175911162
Reviewed-on: https://gerrit.libreoffice.org/72049
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/inc/MutexContainer.hxx | 7 | ||||
-rw-r--r-- | chart2/source/tools/MutexContainer.cxx | 3 |
2 files changed, 4 insertions, 6 deletions
diff --git a/chart2/source/inc/MutexContainer.hxx b/chart2/source/inc/MutexContainer.hxx index 59c0d43edf8f..c90dc8ec920c 100644 --- a/chart2/source/inc/MutexContainer.hxx +++ b/chart2/source/inc/MutexContainer.hxx @@ -27,10 +27,11 @@ namespace chart class OOO_DLLPUBLIC_CHARTTOOLS MutexContainer { -public: - virtual ~MutexContainer(); - protected: + MutexContainer() = default; + + ~MutexContainer() = default; + mutable ::osl::Mutex m_aMutex; ::osl::Mutex & GetMutex() const; diff --git a/chart2/source/tools/MutexContainer.cxx b/chart2/source/tools/MutexContainer.cxx index c65cac0180be..7b30db53f0d9 100644 --- a/chart2/source/tools/MutexContainer.cxx +++ b/chart2/source/tools/MutexContainer.cxx @@ -22,9 +22,6 @@ namespace chart { -MutexContainer::~MutexContainer() -{} - ::osl::Mutex & MutexContainer::GetMutex() const { return m_aMutex; |