testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 42b733539179547a4030dfe54655b26985936717 Author: Stephan Bergmann <sberg...@redhat.com> Date: Wed Dec 4 11:35:57 2013 +0100 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 diff --git a/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx b/testtools/source/bridgetest/cli/cli_cpp_bridgetest.cxx index 7d08eab..c2e7bda 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); } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits