From 9359e306e535fcf76da2ae8369449426c6204bab Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 1 Jul 2011 11:26:04 +0100 Subject: WaE: for windows compiler --- .../cpp/unoexceptionprotector/unoexceptionprotector.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'test/source') diff --git a/test/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx b/test/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx index e58c78eaff2a..ed2c4f7d4887 100644 --- a/test/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx +++ b/test/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx @@ -95,9 +95,12 @@ bool Prot::protect( bool Prot::protect(CppUnit::Functor const & functor) { - try { - return functor(); - } catch (const css::uno::Exception &e) { + bool bRet = false; + try + { + bRet = functor(); + } catch (const css::uno::Exception &e) + { css::uno::Any a(cppu::getCaughtException()); std::cerr << convert(rtl::OUString( @@ -108,7 +111,7 @@ bool Prot::protect(CppUnit::Functor const & functor) << std::endl; throw; } - return false; + return bRet; } } -- cgit