Difference between revisions of "Uno/Cpp/Snippet/Environment Guard"
From Apache OpenOffice Wiki
m |
|||
Line 8: | Line 8: | ||
} | } | ||
</code> | </code> | ||
− | + | <noinclude>[[Category:Uno:Cpp:Snippet]]</noinclude> | |
− | <noinclude> | ||
− | [[Category:Uno:Cpp:Snippet]] | ||
− | </noinclude> |
Revision as of 11:22, 28 September 2006
[cpp]
- 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.
...
}