Skip to content
Permalink
Browse files

Fix inconsistent-missing-override warning

  • Loading branch information
jgrocha committed Jan 29, 2017
1 parent d60ddcc commit bbf6ec05b9a4bf3f84cd7afffd9953a8d981b6b7
@@ -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 );
@@ -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 );

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

0 comments on commit bbf6ec0

Please sign in to comment.
You can’t perform that action at this time.