Uno/Cpp/Snippet/Environment Guard

From OpenOffice.org Wiki

< Uno | Cpp
Jump to: navigation, search
#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.
  ...
}
Personal tools