summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-01 11:26:04 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-01 11:26:04 +0100
commit41515f40e6a189bfd969b9fa08d378f48f3bf96c (patch)
tree3b535218a842c656d26044d2eeafe9b073dada24
parent3e5b29719087d32cbb7c3c13406fd3e5251973bb (diff)
WaE: for windows compiler
-rw-r--r--test/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/test/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx b/test/source/cpp/unoexceptionprotector/unoexceptionprotector.cxx
index e58c78eaf..ed2c4f7d4 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;
}
}