Kaydet (Commit) 9359e306 authored tarafından Caolán McNamara's avatar Caolán McNamara

WaE: for windows compiler

üst 05157ef7
...@@ -95,9 +95,12 @@ bool Prot::protect( ...@@ -95,9 +95,12 @@ bool Prot::protect(
bool Prot::protect(CppUnit::Functor const & functor) bool Prot::protect(CppUnit::Functor const & functor)
{ {
try { bool bRet = false;
return functor(); try
} catch (const css::uno::Exception &e) { {
bRet = functor();
} catch (const css::uno::Exception &e)
{
css::uno::Any a(cppu::getCaughtException()); css::uno::Any a(cppu::getCaughtException());
std::cerr std::cerr
<< convert(rtl::OUString( << convert(rtl::OUString(
...@@ -108,7 +111,7 @@ bool Prot::protect(CppUnit::Functor const & functor) ...@@ -108,7 +111,7 @@ bool Prot::protect(CppUnit::Functor const & functor)
<< std::endl; << std::endl;
throw; throw;
} }
return false; return bRet;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment