aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/imageconversion
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-04 10:24:08 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2019-06-04 10:25:27 +0200
commitc1c3e7546f578554d1de0f865cb4fa359a8d0109 (patch)
tree4c3475d1746bcb706f6ec73c3e47cfd55da13ef4 /tests/manual/imageconversion
parent22f07a12de37416409c29c6ca396d35da15a849d (diff)
Fix various clang warnings
- Use static QFileInfo::exists() - Fix else after return/break - Use Q_ENUM Change-Id: I08d5b48224e5b43c795929765b4ab4c0b137224f Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'tests/manual/imageconversion')
-rw-r--r--tests/manual/imageconversion/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/manual/imageconversion/main.cpp b/tests/manual/imageconversion/main.cpp
index ec388b2..a0fc46a 100644
--- a/tests/manual/imageconversion/main.cpp
+++ b/tests/manual/imageconversion/main.cpp
@@ -243,9 +243,8 @@ void PaintWidget::saveBitmap()
if (image.save(fileName)) {
qDebug().noquote() << "saved" << QDir::toNativeSeparators(fileName);
break;
- } else {
- qWarning().noquote() << "Could not save" << QDir::toNativeSeparators(fileName);
}
+ qWarning().noquote() << "Could not save" << QDir::toNativeSeparators(fileName);
}
}