info/CWS undoapi : new: ::comphelper::FlagRestorationGuard

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

info/CWS undoapi : new: ::comphelper::FlagRestorationGuard


          Type: info
         Title: new: ::comphelper::FlagRestorationGuard
     Posted by: [hidden email]
      Affected: -
         TaskId: i33781
Effective from: CWS undoapi
    CWS status: new

+ <comphelper/flagguard.hxx>
+ class FlagRestorationGuard

FlagRestorartionGuard is a specialization of ::comphelper::ScopeGuard,
encapsulating the often-seen pattern of setting a certain boolean flag
to some value, and ensuring that it is reset to its previous value
upon leaving the current scope.
    FlagRestorationGuard aGuard( bSomeFlag, true );
  } // bSomeFlag will be reset to the value it had at the beginning of
the scope

Send feedback to [hidden email]

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]