diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-01 11:26:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-01 11:26:04 +0100 |
commit | 9359e306e535fcf76da2ae8369449426c6204bab (patch) | |
tree | 433f6e178c9b3d0d16dc8b7fb05592566de0c023 /test | |
parent | 05157ef75cf29f0a567f4ec11cb347a7cdc6a933 (diff) |
WaE: for windows compiler
Diffstat (limited to 'test')
-rw-r--r-- | test/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx | 11 |
1 files changed, 7 insertions, 4 deletions
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; } } |