Commit 6e222f63 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Fix GCC warning about copying an element from a container


(cherry picked from commit 6f2b4fd4)
parent 4d1bebb3
......@@ -236,8 +236,8 @@ void PagesModel::removeLocalPageFiles(const QString &fileName)
return;
}
PageDataObject *const page = *it;
QStringList files = QStandardPaths::locateAll(QStandardPaths::AppDataLocation, page->fileName(), QStandardPaths::LocateFile);
for (const auto file : files) {
const QStringList files = QStandardPaths::locateAll(QStandardPaths::AppDataLocation, page->fileName(), QStandardPaths::LocateFile);
for (const auto &file : files) {
if (QFileInfo(file).isWritable()) {
QFile::remove(file);
}
......
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