LibreOffice Module chart2 (master) 1
|
This guard calls lockControllers at the given ControllerLockHelper in the CTOR and unlockControllers in the DTOR. More...
#include <ControllerLockGuard.hxx>
Public Member Functions | |
ControllerLockHelperGuard (ControllerLockHelper &rHelper) | |
~ControllerLockHelperGuard () | |
Private Attributes | |
ControllerLockHelper & | m_rHelper |
This guard calls lockControllers at the given ControllerLockHelper in the CTOR and unlockControllers in the DTOR.
Using this ensures that controllers do not remain locked when leaving a function even in case an exception is thrown.
Definition at line 83 of file ControllerLockGuard.hxx.
|
explicit |
Definition at line 70 of file ControllerLockGuard.cxx.
References chart::ControllerLockHelper::lockControllers(), and m_rHelper.
chart::ControllerLockHelperGuard::~ControllerLockHelperGuard | ( | ) |
Definition at line 76 of file ControllerLockGuard.cxx.
References m_rHelper, and chart::ControllerLockHelper::unlockControllers().
|
private |
Definition at line 90 of file ControllerLockGuard.hxx.
Referenced by ControllerLockHelperGuard(), and ~ControllerLockHelperGuard().