diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-05-23 16:28:55 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-05-25 11:35:08 +0000 |
commit | 11bbbe191cb7cee6ae32f624fb943859c6b5d350 (patch) | |
tree | 2e49cd530eeae4bec624441845d68aaa8e77a2c6 /tests | |
parent | 7cf832df46781cab742fc71e6ff379e1059cadb4 (diff) |
Fix a bunch of compiler warnings on MSVC
Change-Id: I9065fba658c506cf2737d922f77f67e27f8ae634
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: André de la Rocha <andre.rocha@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/unit/mockbackend/qmockcamera.h | 4 | ||||
-rw-r--r-- | tests/auto/unit/mockbackend/qmockvideosink.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/unit/mockbackend/qmockcamera.h b/tests/auto/unit/mockbackend/qmockcamera.h index 6e0894bf6..f9d6e1edf 100644 --- a/tests/auto/unit/mockbackend/qmockcamera.h +++ b/tests/auto/unit/mockbackend/qmockcamera.h @@ -54,8 +54,8 @@ public: if (!simpleCamera) { minIsoChanged(100); maxIsoChanged(800); - minShutterSpeedChanged(.001); - maxShutterSpeedChanged(1); + minShutterSpeedChanged(.001f); + maxShutterSpeedChanged(1.f); exposureCompensationRangeChanged(-2, 2); maximumZoomFactorChanged(4.); setFlashMode(QCamera::FlashAuto); diff --git a/tests/auto/unit/mockbackend/qmockvideosink.h b/tests/auto/unit/mockbackend/qmockvideosink.h index 66ac1bd2f..1e86074d1 100644 --- a/tests/auto/unit/mockbackend/qmockvideosink.h +++ b/tests/auto/unit/mockbackend/qmockvideosink.h @@ -63,7 +63,7 @@ public: {} void setWinId(WId) override {} - void setRhi(QRhi */*rhi*/) override {} + void setRhi(QRhi * /*rhi*/) override {} void setDisplayRect(const QRect &) override {} |