diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-14 22:03:58 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2010-10-25 19:55:29 -0500 |
commit | b10b21b999a36a6925790284c44e7b45283bd104 (patch) | |
tree | b005c0fe6089d78a624501cff113a782ec380e3a /accessibility/source/extended | |
parent | 213c3f88258fc803bb38dfbfe7c390eba245ca84 (diff) |
migrate use of OClearableGuard(SolarMutex) to SolarMutexGuard
3 helper class and a site were using OClearableGuard on the SolarMutex
None of these actually needed the Clearable feature, so
they were replaced by a simple SolarMutexGuard.
Diffstat (limited to 'accessibility/source/extended')
3 files changed, 6 insertions, 21 deletions
diff --git a/accessibility/source/extended/AccessibleToolPanelDeck.cxx b/accessibility/source/extended/AccessibleToolPanelDeck.cxx index d3d12c40209e..ce2b05b86b85 100644 --- a/accessibility/source/extended/AccessibleToolPanelDeck.cxx +++ b/accessibility/source/extended/AccessibleToolPanelDeck.cxx @@ -129,7 +129,7 @@ namespace accessibility { public: MethodGuard( AccessibleToolPanelDeck_Impl& i_rImpl ) - :m_aGuard( Application::GetSolarMutex() ) + :m_aGuard() { i_rImpl.checkDisposed(); } @@ -137,13 +137,8 @@ namespace accessibility { } - void clear() - { - m_aGuard.clear(); - } - private: - ::vos::OClearableGuard m_aGuard; + SolarMutexGuard m_aGuard; }; } diff --git a/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx b/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx index 8a633101efd0..a305b19cde6e 100644 --- a/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx +++ b/accessibility/source/extended/AccessibleToolPanelDeckTabBar.cxx @@ -296,7 +296,7 @@ namespace accessibility { public: MethodGuard( AccessibleToolPanelTabBar_Impl& i_rImpl ) - :m_aGuard( Application::GetSolarMutex() ) + :m_aGuard() { i_rImpl.checkDisposed(); } @@ -304,13 +304,8 @@ namespace accessibility { } - void clear() - { - m_aGuard.clear(); - } - private: - ::vos::OClearableGuard m_aGuard; + SolarMutexGuard m_aGuard; }; } diff --git a/accessibility/source/extended/AccessibleToolPanelDeckTabBarItem.cxx b/accessibility/source/extended/AccessibleToolPanelDeckTabBarItem.cxx index de459ae8cdb9..2ad3ee0f3266 100644 --- a/accessibility/source/extended/AccessibleToolPanelDeckTabBarItem.cxx +++ b/accessibility/source/extended/AccessibleToolPanelDeckTabBarItem.cxx @@ -258,7 +258,7 @@ namespace accessibility { public: ItemMethodGuard( AccessibleToolPanelDeckTabBarItem_Impl& i_rImpl ) - :m_aGuard( Application::GetSolarMutex() ) + :m_aGuard() { i_rImpl.checkDisposed(); } @@ -266,13 +266,8 @@ namespace accessibility { } - void clear() - { - m_aGuard.clear(); - } - private: - ::vos::OClearableGuard m_aGuard; + SolarMutexGuard m_aGuard; }; //================================================================================================================== |