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;
|
return inBounds;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QgsDelimitedTextProvider::supportsSaveAsShapefile()
|
bool QgsDelimitedTextProvider::supportsSaveAsShapefile() const
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -208,10 +208,11 @@ public:
|
|||||||
|
|
||||||
//! We support saving as shapefile - used to add item to the
|
//! We support saving as shapefile - used to add item to the
|
||||||
// layers context menu
|
// layers context menu
|
||||||
bool supportsSaveAsShapefile();
|
bool supportsSaveAsShapefile() const;
|
||||||
|
|
||||||
//! Save the layer as a shapefile
|
//! Save the layer as a shapefile
|
||||||
bool saveAsShapefile();
|
bool saveAsShapefile();
|
||||||
|
|
||||||
QgsDataSourceURI *getURI()
|
QgsDataSourceURI *getURI()
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -150,9 +150,15 @@ public:
|
|||||||
*/
|
*/
|
||||||
bool boundsCheck(double x, double y);
|
bool boundsCheck(double x, double y);
|
||||||
|
|
||||||
bool supportsFeatureAddition(){return true;}
|
bool supportsFeatureAddition() const
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
QgsDataSourceURI *getURI(){return 0;};
|
QgsDataSourceURI *getURI()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
@ -140,8 +140,15 @@ class QgsShapeFileProvider:public QgsVectorDataProvider
|
|||||||
/**Writes a list of features to the file*/
|
/**Writes a list of features to the file*/
|
||||||
bool addFeatures(std::list<QgsFeature*> flist);
|
bool addFeatures(std::list<QgsFeature*> flist);
|
||||||
|
|
||||||
bool supportsFeatureAddition(){return true;}
|
bool supportsFeatureAddition() const
|
||||||
QgsDataSourceURI * getURI(){ return 0;};
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
QgsDataSourceURI * getURI()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
unsigned char *getGeometryPointer(OGRFeature * fet);
|
unsigned char *getGeometryPointer(OGRFeature * fet);
|
||||||
|
@ -1146,7 +1146,7 @@ bool QgsPostgresProvider::deleteFeatures(std::list<int> id)
|
|||||||
return returnvalue;
|
return returnvalue;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QgsPostgresProvider::supportsSaveAsShapefile()
|
bool QgsPostgresProvider::supportsSaveAsShapefile() const
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -204,12 +204,14 @@ public:
|
|||||||
@return true in case of success and false in case of failure*/
|
@return true in case of success and false in case of failure*/
|
||||||
bool deleteFeatures(std::list<int> id);
|
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
|
//! Flag to indicate if the provider can export to shapefile
|
||||||
bool supportsSaveAsShapefile();
|
bool supportsSaveAsShapefile() const;
|
||||||
|
|
||||||
/** Accessor for sql where clause used to limit dataset */
|
/** Accessor for sql where clause used to limit dataset */
|
||||||
QString subsetString() {return sqlWhereClause;};
|
QString subsetString() {return sqlWhereClause;};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user