Difference between revisions of "Uno/Cpp/Snippet/Environment AntiGuard"
From Apache OpenOffice Wiki
SergeMoutou (talk | contribs) m |
m |
||
| Line 1: | Line 1: | ||
| − | < | + | <syntaxhighlight lang="cpp"> |
#include <cppu/EnvGuards.hxx> | #include <cppu/EnvGuards.hxx> | ||
... | ... | ||
| Line 7: | Line 7: | ||
... | ... | ||
} | } | ||
| − | </ | + | </syntaxhighlight> |
| + | |||
| + | <noinclude>[[Category:Snippet]][[Category:Cpp]][[Category:Uno]]</noinclude> | ||
Revision as of 10:00, 19 May 2021
#include <cppu/EnvGuards.hxx>
...
{
cppu::AntiEnvGuard antiEnvGuard;
// From here onwards the previous environment has been left, at the end of the block it gets re-entered.
...
}