From a3f32769fc4bb23c64168b412dd10ec769a3854d Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 21 Jan 2014 15:53:55 +0100 Subject: Fix bogus mass-conversion equalsAsciiL -> startsWith 3af99e4d59d89c343965a928681a30f36b1007d2 "convert equalsAsciiL calls to startsWith calls" should rather have converted to oprator ==. Change-Id: Id4a8836c5d6d570e54661c40be7214632e202b21 --- connectivity/source/commontools/dbtools2.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'connectivity') diff --git a/connectivity/source/commontools/dbtools2.cxx b/connectivity/source/commontools/dbtools2.cxx index 56fd92d1a980..7f73de093a97 100644 --- a/connectivity/source/commontools/dbtools2.cxx +++ b/connectivity/source/commontools/dbtools2.cxx @@ -874,7 +874,7 @@ bool isEmbeddedInDatabase( const Reference< XInterface >& _rxComponent, Referenc const PropertyValue* pContextEnd = pContextIter + aDocumentContext.getLength(); for(;pContextIter != pContextEnd;++pContextIter) { - if ( pContextIter->Name.startsWith( "ActiveConnection" ) + if ( pContextIter->Name == "ActiveConnection" && ( pContextIter->Value >>= _rxActualConnection ) ) { -- cgit