summaryrefslogtreecommitdiff
path: root/comphelper/inc/comphelper/scopeguard.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'comphelper/inc/comphelper/scopeguard.hxx')
-rw-r--r--comphelper/inc/comphelper/scopeguard.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/comphelper/inc/comphelper/scopeguard.hxx b/comphelper/inc/comphelper/scopeguard.hxx
index 1c831c08ff20..5ae21d222ee5 100644
--- a/comphelper/inc/comphelper/scopeguard.hxx
+++ b/comphelper/inc/comphelper/scopeguard.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
@@ -45,7 +45,7 @@ class COMPHELPER_DLLPUBLIC ScopeGuard : private ::boost::noncopyable
{
public:
enum exc_handling { IGNORE_EXCEPTIONS, ALLOW_EXCEPTIONS };
-
+
/** @param func function object to be executed in dtor
@param excHandling switches whether thrown exceptions in dtor will be
silently ignored (but OSL_ asserted)
@@ -54,14 +54,14 @@ public:
explicit ScopeGuard( func_type const & func,
exc_handling excHandling = IGNORE_EXCEPTIONS )
: m_func( func ), m_excHandling( excHandling ) {}
-
+
~ScopeGuard();
-
+
/** Dismisses the scope guard, i.e. the function won't
be executed.
*/
void dismiss();
-
+
private:
::boost::function0<void> m_func; // preferring portable syntax
exc_handling const m_excHandling;