Commit af771237 authored by Fabian Kosmale's avatar Fabian Kosmale

clazy: fix some detaching temporary warnings; most can only be fixed with Qt 5.6

parent e5f6c5d4
......@@ -996,7 +996,7 @@ int QueryPerformer::insertFiles(AbstractSQLiteConnection &dbConnection, Package*
dbConnection.bind(":Package", p->databaseId());
dbConnection.bind(":File", file);
if (p->backupFiles().contains(file)) {
dbConnection.bind(":Backup", p->backupFiles()[file]);
dbConnection.bind(":Backup", p->backupFiles().value(file));
} else {
dbConnection.bind(":Backup", QString());
}
......@@ -1011,7 +1011,7 @@ int QueryPerformer::insertFiles(AbstractSQLiteConnection &dbConnection, Package*
dbConnection.bind(":Package", p->databaseId());
dbConnection.bind(":File", dir);
if (p->backupFiles().contains(dir)) {
dbConnection.bind(":Backup", p->backupFiles()[dir]);
dbConnection.bind(":Backup", p->backupFiles().value(dir));
} else {
dbConnection.bind(":Backup", QString());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment