summaryrefslogtreecommitdiff
path: root/testtools
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-12-04 11:35:57 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-12-04 11:38:04 +0100
commit42b733539179547a4030dfe54655b26985936717 (patch)
tree969bd8272b2cec012524049f03e853a377ee1986 /testtools
parent1da04bd7a8a804cbfb1d01a3102b1b76cc557122 (diff)
Revert "throw new ..." fix in Managed C++ code
...where it is correct and 336353a87e6003e685aab87ea74a158546e1f297 "Related rhbz#867808: More apparently bogus 'throw new ...' in C++ code" had changed it by accident. Change-Id: Id7fc1adf8c0068a3b59794d156b21f68b5ac7e72
Diffstat (limited to 'testtools')
-rw-r--r--testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx b/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx
index 7d08eab71db1..c2e7bda150d6 100644
--- a/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx
+++ b/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx
@@ -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);
}
}