diff options
Diffstat (limited to 'cppu/inc/cppu/EnvGuards.hxx')
-rw-r--r-- | cppu/inc/cppu/EnvGuards.hxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cppu/inc/cppu/EnvGuards.hxx b/cppu/inc/cppu/EnvGuards.hxx index 07f65b2aced9..b03f54ff0c6b 100644 --- a/cppu/inc/cppu/EnvGuards.hxx +++ b/cppu/inc/cppu/EnvGuards.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -59,25 +59,25 @@ namespace cppu } } - ~EnvGuard() - { - m_env.enter(); + ~EnvGuard() + { + m_env.enter(); } /** Checks if the associated environment is non empty. - + @return 0 == empty, 1 == non empty */ sal_Bool SAL_CALL is() const SAL_THROW( () ) - { - return m_env.is(); + { + return m_env.is(); } /** Leaves the associated environment and clears the reference. */ - void clear() - { + void clear() + { if (m_env.is()) { m_env.enter(); @@ -104,12 +104,12 @@ namespace cppu uno_Environment_enter(NULL); } - ~AntiEnvGuard() - { + ~AntiEnvGuard() + { m_env.enter(); } }; -} +} #endif |