LibreOffice Module chart2 (master) 1
Public Member Functions | Private Attributes | List of all members
chart::ControllerLockHelperGuard Class Reference

This guard calls lockControllers at the given ControllerLockHelper in the CTOR and unlockControllers in the DTOR. More...

#include <ControllerLockGuard.hxx>

Collaboration diagram for chart::ControllerLockHelperGuard:
[legend]

Public Member Functions

 ControllerLockHelperGuard (ControllerLockHelper &rHelper)
 
 ~ControllerLockHelperGuard ()
 

Private Attributes

ControllerLockHelperm_rHelper
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ControllerLockHelperGuard()

chart::ControllerLockHelperGuard::ControllerLockHelperGuard ( ControllerLockHelper rHelper)
explicit

◆ ~ControllerLockHelperGuard()

chart::ControllerLockHelperGuard::~ControllerLockHelperGuard ( )

Member Data Documentation

◆ m_rHelper

ControllerLockHelper& chart::ControllerLockHelperGuard::m_rHelper
private

The documentation for this class was generated from the following files: