diff options
Diffstat (limited to 'comphelper/source/property/propagg.cxx')
-rw-r--r-- | comphelper/source/property/propagg.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/comphelper/source/property/propagg.cxx b/comphelper/source/property/propagg.cxx index b83c292689dc..945ace837808 100644 --- a/comphelper/source/property/propagg.cxx +++ b/comphelper/source/property/propagg.cxx @@ -60,7 +60,8 @@ namespace comphelper { sal_Int32 nLen = _rProps.getLength(); const Property* pProperties = _rProps.getConstArray(); - const Property* pResult = ::std::lower_bound(pProperties, pProperties + nLen,_rName, ::comphelper::PropertyStringLessFunctor()); + Property aNameProp(_rName, 0, Type(), 0); + const Property* pResult = ::std::lower_bound(pProperties, pProperties + nLen, aNameProp, PropertyCompareByName()); if ( pResult && ( pResult == pProperties + nLen || pResult->Name != _rName) ) pResult = NULL; |