From aea70b22af92ca6ed013bf6c78a6fdcae58d13cc Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 18 Aug 2011 00:11:46 -0400 Subject: [PATCH] Fixed build breakage. --- connectivity/source/commontools/dbtools.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/connectivity/source/commontools/dbtools.cxx b/connectivity/source/commontools/dbtools.cxx index 053cc61161f2..1d6e63fd835e 100644 --- a/connectivity/source/commontools/dbtools.cxx +++ b/connectivity/source/commontools/dbtools.cxx @@ -1050,7 +1050,9 @@ try ) { // binary search - Property* pResult = ::std::lower_bound(pNewProps, pNewProps + nNewLen,pOldProps[i].Name, ::comphelper::PropertyStringLessFunctor()); + Property* pResult = ::std::lower_bound( + pNewProps, pNewProps + nNewLen, pOldProps[i], ::comphelper::PropertyCompareByName()); + if ( pResult && ( pResult != pNewProps + nNewLen && pResult->Name == pOldProps[i].Name ) && ( (pResult->Attributes & PropertyAttribute::READONLY) == 0 )