Skip to content

Commit c7a6a3b

Browse files
author
jef
committedJun 25, 2009
fix a warning and add a note about QgsVectorDataProvider::addAttributes() change
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10979 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎python/core/qgsvectordataprovider.sip

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ class QgsVectorDataProvider : QgsDataProvider
170170
* Adds new attributes
171171
* @param attributes map with attribute name as key and type as value
172172
* @return true in case of success and false in case of failure
173+
* @note changed in 1.2
173174
*/
174175
virtual bool addAttributes(const QList<QgsField> & attributes);
175176

‎src/core/qgsvectordataprovider.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider
192192
* @param index the index of the attribute
193193
* @param enumList reference to the list to fill
194194
@note: added in version 1.2*/
195-
virtual void enumValues( int index, QStringList& enumList ) { enumList.clear(); }
195+
virtual void enumValues( int index, QStringList& enumList ) { Q_UNUSED(index); enumList.clear(); }
196196

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

0 commit comments

Comments
 (0)
Please sign in to comment.