Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix a warning and add a note about QgsVectorDataProvider::addAttribut…
…es() change

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10979 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jun 25, 2009
1 parent 8715172 commit c7a6a3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions python/core/qgsvectordataprovider.sip
Expand Up @@ -170,6 +170,7 @@ class QgsVectorDataProvider : QgsDataProvider
* Adds new attributes
* @param attributes map with attribute name as key and type as value
* @return true in case of success and false in case of failure
* @note changed in 1.2
*/
virtual bool addAttributes(const QList<QgsField> & attributes);

Expand Down
3 changes: 2 additions & 1 deletion src/core/qgsvectordataprovider.h
Expand Up @@ -192,7 +192,7 @@ class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider
* @param index the index of the attribute
* @param enumList reference to the list to fill
@note: added in version 1.2*/
virtual void enumValues( int index, QStringList& enumList ) { enumList.clear(); }
virtual void enumValues( int index, QStringList& enumList ) { Q_UNUSED(index); enumList.clear(); }

/**
* Adds a list of features
Expand All @@ -211,6 +211,7 @@ class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider
* Adds new attributes
* @param attributes map with attribute name as key and type as value
* @return true in case of success and false in case of failure
* @note changed in 1.2
*/
virtual bool addAttributes( const QList<QgsField> &attributes );

Expand Down

0 comments on commit c7a6a3b

Please sign in to comment.