diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-04-16 15:01:31 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-04-16 15:01:42 +0200 |
commit | 336353a87e6003e685aab87ea74a158546e1f297 (patch) | |
tree | 6d32698019589a88b2a57350bab8afe312f86a44 /testtools | |
parent | 63b4633cf7b0da9eba63e752cec72cb10ed9d93e (diff) |
Related rhbz#867808: More apparently bogus "throw new ..." in C++ code
Change-Id: I5d723b389f1ed20f7962807b782f44f6f3c61882
Diffstat (limited to 'testtools')
-rw-r--r-- | testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx | 6 |
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 c2e7bda150d6..7d08eab71db1 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 new unoidl::com::sun::star::uno::RuntimeException( + throw 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 new RuntimeException( + throw 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 new unoidl::com::sun::star::uno::RuntimeException( + throw unoidl::com::sun::star::uno::RuntimeException( s->ToString(), 0); } } |