diff options
-rw-r--r-- | dbaccess/source/ui/misc/UITools.cxx | 4 | ||||
-rw-r--r-- | include/comphelper/stl_types.hxx | 11 |
2 files changed, 2 insertions, 13 deletions
diff --git a/dbaccess/source/ui/misc/UITools.cxx b/dbaccess/source/ui/misc/UITools.cxx index f2e2cabb553b..8453b903d86c 100644 --- a/dbaccess/source/ui/misc/UITools.cxx +++ b/dbaccess/source/ui/misc/UITools.cxx @@ -1036,13 +1036,13 @@ void fillAutoIncrementValue(const Reference<XPropertySet>& _xDatasource, // search the right propertyvalue const PropertyValue* pValue =std::find_if(aInfo.begin(), aInfo.end(), [](const PropertyValue& lhs) - {return TPropertyValueEqualFunctor()(lhs, PROPERTY_AUTOINCREMENTCREATION);} ); + {return lhs.Name == PROPERTY_AUTOINCREMENTCREATION;} ); if ( pValue != aInfo.end() ) pValue->Value >>= _rsAutoIncrementValue; pValue =std::find_if(aInfo.begin(), aInfo.end(), [](const PropertyValue& lhs) - {return TPropertyValueEqualFunctor()(lhs, "IsAutoRetrievingEnabled");} ); + {return lhs.Name == "IsAutoRetrievingEnabled";} ); if ( pValue != aInfo.end() ) pValue->Value >>= _rAutoIncrementValueEnabled; diff --git a/include/comphelper/stl_types.hxx b/include/comphelper/stl_types.hxx index b82db0c9c8ec..bb50c21a7e8c 100644 --- a/include/comphelper/stl_types.hxx +++ b/include/comphelper/stl_types.hxx @@ -63,17 +63,6 @@ public: bool isCaseSensitive() const {return m_bCaseSensitive;} }; -class TPropertyValueEqualFunctor -{ -public: - TPropertyValueEqualFunctor() - {} - bool operator() (const css::beans::PropertyValue& lhs, const OUString& rhs) const - { - return !!(lhs.Name == rhs); - } -}; - /// by-value less functor for std::set<std::unique_ptr<T>> template<class T> struct UniquePtrValueLess { |