summaryrefslogtreecommitdiffhomepage
path: root/csv
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-06-26 22:25:22 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-06-26 23:05:21 +0200
commitd65936200a2756e6619a109fa6fa673b91df802e (patch)
tree80b6b6fc7ba9023cbe47290b8ae1bc5468a19bb1 /csv
parent4046773c41ee3c0f65840828ab983cfd13451c85 (diff)
modernize C++ syntax
No visible changes (hopefully).
Diffstat (limited to 'csv')
-rw-r--r--csv/csv.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/csv/csv.cpp b/csv/csv.cpp
index 31f361a8..73c56aed 100644
--- a/csv/csv.cpp
+++ b/csv/csv.cpp
@@ -132,12 +132,12 @@ bool CSV::getGameData(int id, unsigned char* table, QString& gamename)
{
if (gameLine.at(6).compare(id_str, Qt::CaseInsensitive) == 0)
{
- const QString& proto = gameLine.at(3);
- const QString& name = gameLine.at(1);
+ const QString& proto = gameLine[3];
+ QString& name = gameLine[1];
- const QByteArray id_cstr = gameLine.at(7).toLatin1();
+ const QByteArray id_cstr = gameLine[7].toLatin1();
- if (proto == QString("V160"))
+ if (proto == QStringLiteral("V160"))
{
/* nothing */
}