Skip to content
Permalink
Browse files

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
jef committed Jun 25, 2009
1 parent 8715172 commit c7a6a3bf542f22fe7294cd5c85d23647bfd81f73
Showing with 3 additions and 1 deletion.
  1. +1 −0 python/core/qgsvectordataprovider.sip
  2. +2 −1 src/core/qgsvectordataprovider.h
@@ -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);

@@ -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
@@ -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 );

0 comments on commit c7a6a3b

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