mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
Fixes for const-correctness not propogated properly to sub-classes.
git-svn-id: http://svn.osgeo.org/qgis/trunk@2553 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
6daceeb880
commit
e0e503326e
@ -725,7 +725,7 @@ bool QgsDelimitedTextProvider::boundsCheck(double x, double y)
|
||||
return inBounds;
|
||||
}
|
||||
|
||||
bool QgsDelimitedTextProvider::supportsSaveAsShapefile()
|
||||
bool QgsDelimitedTextProvider::supportsSaveAsShapefile() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
@ -208,10 +208,11 @@ public:
|
||||
|
||||
//! We support saving as shapefile - used to add item to the
|
||||
// layers context menu
|
||||
bool supportsSaveAsShapefile();
|
||||
bool supportsSaveAsShapefile() const;
|
||||
|
||||
//! Save the layer as a shapefile
|
||||
bool saveAsShapefile();
|
||||
|
||||
QgsDataSourceURI *getURI()
|
||||
{
|
||||
return 0;
|
||||
|
@ -150,9 +150,15 @@ public:
|
||||
*/
|
||||
bool boundsCheck(double x, double y);
|
||||
|
||||
bool supportsFeatureAddition(){return true;}
|
||||
bool supportsFeatureAddition() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
QgsDataSourceURI *getURI(){return 0;};
|
||||
QgsDataSourceURI *getURI()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
|
@ -140,8 +140,15 @@ class QgsShapeFileProvider:public QgsVectorDataProvider
|
||||
/**Writes a list of features to the file*/
|
||||
bool addFeatures(std::list<QgsFeature*> flist);
|
||||
|
||||
bool supportsFeatureAddition(){return true;}
|
||||
QgsDataSourceURI * getURI(){ return 0;};
|
||||
bool supportsFeatureAddition() const
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
QgsDataSourceURI * getURI()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
private:
|
||||
unsigned char *getGeometryPointer(OGRFeature * fet);
|
||||
|
@ -1146,7 +1146,7 @@ bool QgsPostgresProvider::deleteFeatures(std::list<int> id)
|
||||
return returnvalue;
|
||||
}
|
||||
|
||||
bool QgsPostgresProvider::supportsSaveAsShapefile()
|
||||
bool QgsPostgresProvider::supportsSaveAsShapefile() const
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
@ -204,12 +204,14 @@ public:
|
||||
@return true in case of success and false in case of failure*/
|
||||
bool deleteFeatures(std::list<int> id);
|
||||
|
||||
bool supportsFeatureAddition(){return true;}
|
||||
bool supportsFeatureAddition() const
|
||||
{ return true; }
|
||||
|
||||
bool supportsFeatureDeletion(){return true;}
|
||||
bool supportsFeatureDeletion() const
|
||||
{return true;}
|
||||
|
||||
//! Flag to indicate if the provider can export to shapefile
|
||||
bool supportsSaveAsShapefile();
|
||||
bool supportsSaveAsShapefile() const;
|
||||
|
||||
/** Accessor for sql where clause used to limit dataset */
|
||||
QString subsetString() {return sqlWhereClause;};
|
||||
|
Loading…
x
Reference in New Issue
Block a user