From f50ac3549d6a7f1199fa012e4b03f581bc8d305b Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 22 Jun 2018 12:54:47 +0200 Subject: core, modules: modernize syntax only Use more C++17 features where this helps any. --- csv/csv.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'csv') diff --git a/csv/csv.cpp b/csv/csv.cpp index 8a5f5784..31f361a8 100644 --- a/csv/csv.cpp +++ b/csv/csv.cpp @@ -132,8 +132,8 @@ bool CSV::getGameData(int id, unsigned char* table, QString& gamename) { if (gameLine.at(6).compare(id_str, Qt::CaseInsensitive) == 0) { - const QString proto(std::move(gameLine.at(3))); - const QString name(std::move(gameLine.at(1))); + const QString& proto = gameLine.at(3); + const QString& name = gameLine.at(1); const QByteArray id_cstr = gameLine.at(7).toLatin1(); -- cgit v1.2.3