Skip to content

Commit

Permalink
QList<QString> -> QStringList
Browse files Browse the repository at this point in the history
I tend to prefer the first form but I don't really care.
  • Loading branch information
elpaso committed Dec 20, 2018
1 parent 9ce7e54 commit 6a03e07
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
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
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 6a03e07

Please sign in to comment.