Skip to content
Permalink
Browse files

Deduplicate fieldNameIndex code

  • Loading branch information
m-kuhn committed Mar 9, 2016
1 parent f4c5106 commit a8590135b5801df3de5105f8477765b6349b698e
Showing with 1 addition and 8 deletions.
  1. +1 −8 src/core/qgsvectordataprovider.cpp
@@ -226,14 +226,7 @@ QString QgsVectorDataProvider::capabilitiesString() const

int QgsVectorDataProvider::fieldNameIndex( const QString& fieldName ) const
{
Q_FOREACH ( const QgsField& field, fields() )
{
if ( QString::compare( field.name(), fieldName, Qt::CaseInsensitive ) == 0 )
{
return i;
}
}
return -1;
return fields().fieldNameIndex( fieldName );
}

QMap<QString, int> QgsVectorDataProvider::fieldNameMap() const

0 comments on commit a859013

Please sign in to comment.
You can’t perform that action at this time.