Skip to content

Commit 6a03e07

Browse files
committedDec 20, 2018
QList<QString> -> QStringList
I tend to prefer the first form but I don't really care.
1 parent 9ce7e54 commit 6a03e07

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎src/providers/spatialite/qgsspatialiteprovider.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1123,9 +1123,9 @@ void QgsSpatiaLiteProvider::determineViewPrimaryKey()
11231123
}
11241124
}
11251125

1126-
QList<QString> QgsSpatiaLiteProvider::tablePrimaryKeys( const QString tableName ) const
1126+
QStringList QgsSpatiaLiteProvider::tablePrimaryKeys( const QString &tableName ) const
11271127
{
1128-
QList<QString> result;
1128+
QStringList result;
11291129
const QString sql = QStringLiteral( "PRAGMA table_info(%1)" ).arg( QgsSqliteUtils::quotedIdentifier( tableName ) );
11301130
char **results = nullptr;
11311131
int rows;

‎src/providers/spatialite/qgsspatialiteprovider.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ class QgsSpatiaLiteProvider: public QgsVectorDataProvider
202202
void determineViewPrimaryKey();
203203

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.