+ 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