summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-02-17 14:23:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-02-18 20:40:37 +0000
commit76bdc40cc3157a8ac98332047f8edbc4008f5392 (patch)
tree0c7c0a6a57ab5e81fdd803325b4386a707cef9df /include
parenta979535eeb1630334b60eea98be2c2fabec56c23 (diff)
osl::Mutex->std::mutex in DefaultGridColumnModel
Change-Id: Ie3df092b013f10b36c85028fe3b9966d58b22005 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147264 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/comphelper/compbase.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/comphelper/compbase.hxx b/include/comphelper/compbase.hxx
index 38380ede20d0..ad34ed7007ea 100644
--- a/include/comphelper/compbase.hxx
+++ b/include/comphelper/compbase.hxx
@@ -50,6 +50,11 @@ public:
virtual void disposing(std::unique_lock<std::mutex>&);
protected:
+ void throwIfDisposed(std::unique_lock<std::mutex>&)
+ {
+ if (m_bDisposed)
+ throw css::lang::DisposedException(OUString(), static_cast<cppu::OWeakObject*>(this));
+ }
comphelper::OInterfaceContainerHelper4<css::lang::XEventListener> maEventListeners;
mutable std::mutex m_aMutex;
bool m_bDisposed = false;