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:
mcoletti 2004-12-31 00:30:32 +00:00
parent 6daceeb880
commit e0e503326e
6 changed files with 26 additions and 10 deletions

View File

@ -725,7 +725,7 @@ bool QgsDelimitedTextProvider::boundsCheck(double x, double y)
return inBounds;
}
bool QgsDelimitedTextProvider::supportsSaveAsShapefile()
bool QgsDelimitedTextProvider::supportsSaveAsShapefile() const
{
return true;
}

View File

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

View File

@ -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:

View File

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

View File

@ -1146,7 +1146,7 @@ bool QgsPostgresProvider::deleteFeatures(std::list<int> id)
return returnvalue;
}
bool QgsPostgresProvider::supportsSaveAsShapefile()
bool QgsPostgresProvider::supportsSaveAsShapefile() const
{
return false;
}

View File

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