Skip to content

Commit

Permalink
setDataProvider() mustn't be public as it's not intended for use outs…
Browse files Browse the repository at this point in the history
…ide of QgsVectorLayer.

This fixes ticket #775.


git-svn-id: http://svn.osgeo.org/qgis/trunk@7263 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Oct 11, 2007
1 parent 995037a commit ca9347d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
6 changes: 0 additions & 6 deletions python/core/qgsvectorlayer.sip
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ public:
/** Returns the primary display field name used in the identify results dialog */
const QString displayField() const;

/** bind layer to a specific data provider
@param provider should be "postgres", "ogr", or ??
@todo XXX should this return bool? Throw exceptions?
*/
bool setDataProvider(const QString & provider );

/** Returns the data provider */
QgsVectorDataProvider* getDataProvider();

Expand Down
12 changes: 6 additions & 6 deletions src/core/qgsvectorlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,6 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer
/** Returns the primary display field name used in the identify results dialog */
const QString displayField() const;

/** bind layer to a specific data provider
@param provider should be "postgres", "ogr", or ??
@todo XXX should this return bool? Throw exceptions?
*/
bool setDataProvider( QString const & provider );

/** Returns the data provider */
QgsVectorDataProvider* getDataProvider();

Expand Down Expand Up @@ -413,6 +407,12 @@ public slots:
/** vector layers are not copyable */
QgsVectorLayer & operator=( QgsVectorLayer const & rhs );

/** bind layer to a specific data provider
@param provider should be "postgres", "ogr", or ??
@todo XXX should this return bool? Throw exceptions?
*/
bool setDataProvider( QString const & provider );

/** Draws features. May cause projections exceptions to be generated
* (i.e., code that calls this function needs to catch them
*/
Expand Down

0 comments on commit ca9347d

Please sign in to comment.