Skip to content

Commit

Permalink
Fix inconsistent-missing-override warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jgrocha committed Jan 29, 2017
1 parent d60ddcc commit bbf6ec0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/core/qgsvectordataprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ bool QgsVectorDataProvider::isDeleteStyleFromDBSupported() const
return false;
}

void QgsVectorDataProvider::deleteStyleById( const QString& uri, QString styleId, QString& errCause )
void QgsVectorDataProvider::deleteStyleById( const QString& uri, QString styleId, QString& errCause ) const
{
Q_UNUSED( uri );
Q_UNUSED( styleId );
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsvectordataprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ class CORE_EXPORT QgsVectorDataProvider : public QgsDataProvider
/**
* Deletes an existing style from the provider
*/
virtual void deleteStyleById( const QString& uri, QString styleId, QString& errCause );
virtual void deleteStyleById( const QString& uri, QString styleId, QString& errCause ) const;

static QVariant convertValue( QVariant::Type type, const QString& value );

Expand Down
6 changes: 1 addition & 5 deletions src/providers/postgres/qgspostgresprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4632,12 +4632,8 @@ QGISEXTERN int listStyles( const QString &uri, QStringList &ids, QStringList &na
return numberOfRelatedStyles;
}

void QgsPostgresProvider::deleteStyleById( const QString &uri, QString styleId, QString &errCause )
void QgsPostgresProvider::deleteStyleById( const QString &uri, QString styleId, QString &errCause ) const
{
QgsDebugMsg( "deleteStyleById" );
QgsDebugMsg( styleId );
QgsDebugMsg( uri );

QgsDataSourceUri dsUri( uri );

QgsPostgresConn *conn = QgsPostgresConn::connectDb( dsUri.connectionInfo( false ), false );
Expand Down
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class QgsPostgresProvider : public QgsVectorDataProvider
bool isValid() const override;
virtual bool isSaveAndLoadStyleToDBSupported() const override { return true; }
virtual bool isDeleteStyleFromDBSupported() const override { return true; }
void deleteStyleById( const QString& uri, QString styleId, QString& errCause );
void deleteStyleById( const QString& uri, QString styleId, QString& errCause ) const override;
QgsAttributeList attributeIndexes() const override;
QgsAttributeList pkAttributeIndexes() const override { return mPrimaryKeyAttrs; }
QString defaultValueClause( int fieldId ) const override;
Expand Down

0 comments on commit bbf6ec0

Please sign in to comment.