[QGIS Commit] r10979 - in trunk/qgis: python/core src/core
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Thu Jun 25 13:03:48 EDT 2009
Author: jef
Date: 2009-06-25 13:03:48 -0400 (Thu, 25 Jun 2009)
New Revision: 10979
Modified:
trunk/qgis/python/core/qgsvectordataprovider.sip
trunk/qgis/src/core/qgsvectordataprovider.h
Log:
fix a warning and add a note about QgsVectorDataProvider::addAttributes() change
Modified: trunk/qgis/python/core/qgsvectordataprovider.sip
===================================================================
--- trunk/qgis/python/core/qgsvectordataprovider.sip 2009-06-25 14:50:31 UTC (rev 10978)
+++ trunk/qgis/python/core/qgsvectordataprovider.sip 2009-06-25 17:03:48 UTC (rev 10979)
@@ -170,6 +170,7 @@
* 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);
Modified: trunk/qgis/src/core/qgsvectordataprovider.h
===================================================================
--- trunk/qgis/src/core/qgsvectordataprovider.h 2009-06-25 14:50:31 UTC (rev 10978)
+++ trunk/qgis/src/core/qgsvectordataprovider.h 2009-06-25 17:03:48 UTC (rev 10979)
@@ -192,7 +192,7 @@
* @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 @@
* 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 );
More information about the QGIS-commit
mailing list