Skip to content

Commit

Permalink
Merge pull request #8723 from elpaso/qlist-string-to-stringlist
Browse files Browse the repository at this point in the history
QList<QString> -> QStringList
  • Loading branch information
elpaso authored Dec 20, 2018
2 parents 9ce7e54 + 6a03e07 commit 5cbf95a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/providers/spatialite/qgsspatialiteprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1123,9 +1123,9 @@ void QgsSpatiaLiteProvider::determineViewPrimaryKey()
}
}

QList<QString> QgsSpatiaLiteProvider::tablePrimaryKeys( const QString tableName ) const
QStringList QgsSpatiaLiteProvider::tablePrimaryKeys( const QString &tableName ) const
{
QList<QString> result;
QStringList result;
const QString sql = QStringLiteral( "PRAGMA table_info(%1)" ).arg( QgsSqliteUtils::quotedIdentifier( tableName ) );
char **results = nullptr;
int rows;
Expand Down
2 changes: 1 addition & 1 deletion src/providers/spatialite/qgsspatialiteprovider.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class QgsSpatiaLiteProvider: public QgsVectorDataProvider
void determineViewPrimaryKey();

//! Returns primary key(s) from a table name
QList<QString> tablePrimaryKeys( const QString tableName ) const;
QStringList tablePrimaryKeys( const QString &tableName ) const;

//! Check if a table/view has any triggers. Triggers can be used on views to make them editable.
bool hasTriggers();
Expand Down

0 comments on commit 5cbf95a

Please sign in to comment.