diff options
author | Rolf Eike Beer <eb@emlix.com> | 2019-12-17 09:47:27 +0100 |
---|---|---|
committer | Rolf Eike Beer <eb@emlix.com> | 2020-01-06 09:27:57 +0100 |
commit | 06ab7039e7043b24e18184cd510af07bd2a646d5 (patch) | |
tree | c73e4ce51ad956f60662e8a13cbb1fe38583fe36 /src/gsttools/qvideosurfacegstsink.cpp | |
parent | 8c9676fb0bb145704b7e8bdaf7832c03f14b47de (diff) |
gsttools: use auto for variables assigned from qobject_cast<>
Change-Id: Ie81bd5a419665756dbdac5dafddf50fdde61019f
Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io>
Diffstat (limited to 'src/gsttools/qvideosurfacegstsink.cpp')
-rw-r--r-- | src/gsttools/qvideosurfacegstsink.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gsttools/qvideosurfacegstsink.cpp b/src/gsttools/qvideosurfacegstsink.cpp index c63eea9a6..e3f174292 100644 --- a/src/gsttools/qvideosurfacegstsink.cpp +++ b/src/gsttools/qvideosurfacegstsink.cpp @@ -69,7 +69,7 @@ QVideoSurfaceGstDelegate::QVideoSurfaceGstDelegate( if (m_surface) { const auto instances = bufferPoolLoader()->instances(QGstBufferPoolPluginKey); for (QObject *instance : instances) { - QGstBufferPoolInterface* plugin = qobject_cast<QGstBufferPoolInterface*>(instance); + auto plugin = qobject_cast<QGstBufferPoolInterface*>(instance); if (plugin) { m_pools.append(plugin); |