Fix several clazy issues:

* Don't call ... on temporary [-Wclazy-detaching-temporary]
This commit is contained in:
wmayer
2022-07-25 00:18:42 +02:00
parent 923ebef729
commit 76c993baae
2 changed files with 3 additions and 3 deletions

View File

@@ -1814,7 +1814,7 @@ void StdViewScreenShot::activated(int iMsg)
if (fd.exec() == QDialog::Accepted) {
selFilter = fd.selectedNameFilter();
QString fn = fd.selectedFiles().front();
QString fn = fd.selectedFiles().constFirst();
// We must convert '\' path separators to '/' before otherwise
// Python would interpret them as escape sequences.
fn.replace(QLatin1Char('\\'), QLatin1Char('/'));