Kaydet (Commit) 42b73353 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Revert "throw new ..." fix in Managed C++ code

...where it is correct and 336353a8 "Related
rhbz#867808: More apparently bogus 'throw new ...' in C++ code" had changed it
by accident.

Change-Id: Id7fc1adf8c0068a3b59794d156b21f68b5ac7e72
üst 1da04bd7
......@@ -799,7 +799,7 @@ static bool raiseException(XBridgeTest* xLBT )
bRet = performQueryForUnknownType( xLBT ) && bRet;
if (! bRet)
{
throw unoidl::com::sun::star::uno::RuntimeException(
throw new unoidl::com::sun::star::uno::RuntimeException(
new String("error: test failed!"), 0);
}
}
......@@ -819,7 +819,7 @@ static bool raiseException(XBridgeTest* xLBT )
{
if (args->Length < 1)
{
throw RuntimeException(
throw new RuntimeException(
"missing argument for bridgetest!", this );
}
Object* test_obj =
......@@ -846,7 +846,7 @@ static bool raiseException(XBridgeTest* xLBT )
s->Append(exc->GetType()->Name);
s->Append(S"\n Message: ");
s->Append(exc->Message);
throw unoidl::com::sun::star::uno::RuntimeException(
throw new unoidl::com::sun::star::uno::RuntimeException(
s->ToString(), 0);
}
}
......
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