From 1d0bc2139759f087d50432f8a2116060676f34e1 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 9 May 2020 18:25:33 +0200 Subject: use std::experimental::source_location in uno::Exception Clang and gcc have moved this out of experimental and into std::source_location, but only in their very latest releases. Change-Id: I9d9d9155788ee4240455ac4628b298dface4ad24 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93868 Tested-by: Jenkins Reviewed-by: Noel Grandin --- testtools/source/bridgetest/bridgetest.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testtools') diff --git a/testtools/source/bridgetest/bridgetest.cxx b/testtools/source/bridgetest/bridgetest.cxx index f8129c53d2ba..5ce8a687d5f8 100644 --- a/testtools/source/bridgetest/bridgetest.cxx +++ b/testtools/source/bridgetest/bridgetest.cxx @@ -940,7 +940,7 @@ static bool raiseException( const Reference< XBridgeTest > & xLBT ) if (rExc.ArgumentPosition == 5 && #if OSL_DEBUG_LEVEL == 0 // java stack traces trash Message - rExc.Message == STRING_TEST_CONSTANT && + rExc.Message.startsWith(STRING_TEST_CONSTANT) && #endif rExc.Context == xLBT->getInterface()) { @@ -967,7 +967,7 @@ static bool raiseException( const Reference< XBridgeTest > & xLBT ) if (rExc.Context == xLBT->getInterface() #if OSL_DEBUG_LEVEL == 0 // java stack traces trash Message - && rExc.Message == STRING_TEST_CONSTANT + && rExc.Message.startsWith(STRING_TEST_CONSTANT) #endif ) { @@ -987,7 +987,7 @@ static bool raiseException( const Reference< XBridgeTest > & xLBT ) if (rExc.Context == xLBT->getInterface() #if OSL_DEBUG_LEVEL == 0 // java stack traces trash Message - && rExc.Message == STRING_TEST_CONSTANT + && rExc.Message.startsWith(STRING_TEST_CONSTANT) #endif ) { -- cgit