summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Boelzle <dbo@openoffice.org>2005-10-28 08:13:27 +0000
committerDaniel Boelzle <dbo@openoffice.org>2005-10-28 08:13:27 +0000
commit38b752e9b5c7278ebe6c7d107d869ea3c5378487 (patch)
treeadcb33c9abca00a9d1501a2024198c6af4d568f9
parent01775660206a3330dfadeb94a140c3cb8b13984d (diff)
#i56716# supporting EXCEPTIONS_OFF
-rw-r--r--cppuhelper/inc/cppuhelper/interfacecontainer.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/cppuhelper/inc/cppuhelper/interfacecontainer.h b/cppuhelper/inc/cppuhelper/interfacecontainer.h
index 54bd2279dcbb..e8598fd36e61 100644
--- a/cppuhelper/inc/cppuhelper/interfacecontainer.h
+++ b/cppuhelper/inc/cppuhelper/interfacecontainer.h
@@ -4,9 +4,9 @@
*
* $RCSfile: interfacecontainer.h,v $
*
- * $Revision: 1.16 $
+ * $Revision: 1.17 $
*
- * last change: $Author: obo $ $Date: 2005-10-11 08:20:32 $
+ * last change: $Author: dbo $ $Date: 2005-10-28 09:13:27 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -247,6 +247,9 @@ inline void OInterfaceContainerHelper::forEach( FuncT const& func )
::com::sun::star::uno::Reference<ListenerT> const xListener(
iter.next(), ::com::sun::star::uno::UNO_QUERY );
if (xListener.is()) {
+#if defined(EXCEPTIONS_OFF)
+ func( xListener );
+#else
try {
func( xListener );
}
@@ -254,6 +257,7 @@ inline void OInterfaceContainerHelper::forEach( FuncT const& func )
if (exc.Context == xListener)
iter.remove();
}
+#endif
}
}
}