diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-06-05 12:01:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-06-05 16:05:08 +0200 |
commit | 3bc5057f9689e024957cfa898a221ee2c4c4afe7 (patch) | |
tree | 724284dc80d636c0eae5bdf566bda88050564faf /testtools | |
parent | f5aa422422476d4cf944660a3e03e24ffe918f19 (diff) |
Upcoming loplugin:elidestringvar: testtools
Change-Id: I097ecd5c781b35dc792f613a2f5be19919c3f1cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95581
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'testtools')
-rw-r--r-- | testtools/source/bridgetest/bridgetest.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx index 5ce8a687d5f8..45aa2715ab33 100644 --- a/testtools/source/bridgetest/bridgetest.cxx +++ b/testtools/source/bridgetest/bridgetest.cxx @@ -900,20 +900,19 @@ static bool performTest( static bool raiseOnewayException( const Reference < XBridgeTest > & xLBT ) { bool bReturn = true; - OUString sCompare = STRING_TEST_CONSTANT; Reference<XInterface> const x(xLBT->getInterface()); try { // Note : the exception may fly or not (e.g. remote scenario). // When it flies, it must contain the correct elements. - xLBT->raiseRuntimeExceptionOneway( sCompare, x ); + xLBT->raiseRuntimeExceptionOneway( STRING_TEST_CONSTANT, x ); } catch( const RuntimeException & e ) { bReturn = ( #if OSL_DEBUG_LEVEL == 0 // java stack traces trash Message - e.Message == sCompare && + e.Message == STRING_TEST_CONSTANT && #endif xLBT->getInterface() == e.Context && x == e.Context ); |