Difference between revisions of "Uno/Cpp/Snippet/Environment AntiGuard"

From Apache OpenOffice Wiki
< Uno‎ | Cpp
Jump to: navigation, search
m (Splitted categories.)
m
Line 1: Line 1:
<code>[cpp]
+
<source lang="cpp">
 
#include <cppu/EnvGuards.hxx>
 
#include <cppu/EnvGuards.hxx>
 
...
 
...
Line 7: Line 7:
 
   ...
 
   ...
 
}
 
}
</code><noinclude>[[Category:Snippet]][[Category:Cpp]][[Category:Uno]]</noinclude>
+
</source><noinclude>[[Category:Snippet]][[Category:Cpp]][[Category:Uno]]</noinclude>

Revision as of 17:36, 23 February 2008

#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.
  ...
}
Personal tools