diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-11 13:56:33 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-11 21:41:20 +0200 |
commit | 36e92f38c98e5cb21aecf07434df34b3ad75272a (patch) | |
tree | 88b90ece6f976849c41dce53a35537d1add72dd1 /dbaccess | |
parent | 137795cd0c25bf7daf441ac2036862267c7634ab (diff) |
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/39813
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/misc/UITools.cxx | 4 |
1 files changed, 2 insertions, 2 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; |