File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -407,7 +407,7 @@ void MainDialog::dropEvent(QDropEvent *e)
407
407
{
408
408
QList<QUrl> urls = m->urls ();
409
409
cout << " Drag drop event with " << urls.length () << " URL(s):" << endl;
410
- for (QUrl url : urls)
410
+ for (QUrl const & url : urls)
411
411
{
412
412
QString filename = url.toLocalFile ();
413
413
cout << filename.toStdString () << endl;
@@ -424,7 +424,7 @@ int MainDialog::exec()
424
424
QDialog::show (); // show the window, so that frameGeometry will be correct.
425
425
QRect r = QGuiApplication::primaryScreen ()->geometry ();
426
426
this ->move (r.width () - this ->frameGeometry ().width (), 0 );
427
- for (QString image : filesToOpenAtStartup)
427
+ for (QString const & image : filesToOpenAtStartup)
428
428
openAndShow (-1 , image);
429
429
if (this ->fillScreenAtStartup ) {
430
430
this ->fillScreenWithOpenWindows ();
@@ -458,7 +458,7 @@ void MainDialog::closeEvent(QCloseEvent *event)
458
458
459
459
if (ret == QMessageBox::Yes)
460
460
{
461
- for ( QString fileToDelete : deletedFilesList)
461
+ for ( QString const & fileToDelete : deletedFilesList)
462
462
{
463
463
QFile file (fileToDelete);
464
464
if (file.remove ())
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ int main(int argc, char *argv[])
42
42
43
43
parser.process (app);
44
44
45
- for (QString image : parser.positionalArguments ())
45
+ for (QString const & image : parser.positionalArguments ())
46
46
cout << " Will attempt to open " << image.toStdString () << " at startup." << endl;
47
47
48
48
MainDialog dlg;
You can’t perform that action at this time.
0 commit comments