Difference between revisions of "Uno/Cpp/Snippet/Environment Guard"
From Apache OpenOffice Wiki
m (Splitted categories.) |
SergeMoutou (Talk | contribs) m |
||
Line 1: | Line 1: | ||
− | < | + | <source lang="cpp"> |
#include <cppu/EnvGuards.hxx> | #include <cppu/EnvGuards.hxx> | ||
... | ... | ||
Line 7: | Line 7: | ||
... | ... | ||
} | } | ||
− | </ | + | </source><noinclude>[[Category:Snippet]][[Category:Cpp]][[Category:Uno]]</noinclude> |
Latest revision as of 17:36, 23 February 2008
#include <cppu/EnvGuards.hxx> ... { cppu::EnvGuard cppUnsafe(uno::Environment(RTL_CONSTASCII_USTRINGPARAM("c++:unsafe"))); // From here onwards the environment is entered, until the end of the block. ... }