Kaydet (Commit) 36e92f38 authored tarafından Noel Grandin's avatar Noel Grandin

drop TPropertyValueEqualFunctor

was only in two places, and did nothing to make the code simpler or
easier to understand

Change-Id: I8e91d7e00f14a0611bf563a855d616ad11da5342
Reviewed-on: https://gerrit.libreoffice.org/39813Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 137795cd
......@@ -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;
......
......@@ -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
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment