summaryrefslogtreecommitdiffstats
path: root/src/input/backend/qabstractphysicaldevicebackendnode.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-10-05 08:45:47 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-10-05 19:57:34 +0000
commite7a846b61d4635a1524fa16ce029ce47bc378c7e (patch)
tree3e59a46f50b7a3c35922ad584209fa902ee3482f /src/input/backend/qabstractphysicaldevicebackendnode.cpp
parentcf00f2a1d967e8413d138ffe010e6928b469cb30 (diff)
ShaderData: fix unnecessary cast between enums
QVariant::Type and QMetaType::Type are in sync, but static checkers don't know this, so they complain about mixed-enum type conversions. It turns out that the code is overly complicated. Instead of casting QVariant::type()'s return value to QMetaType::Type and comparing it against QMetaType::QVector3D, simply compare directly to QVariant:: Vector3D instead. Introduced in 1e0fb6c74d81a5b6c17a7f127566e4fb8ed2f28b. Coverity-Id: 168163 Change-Id: I563bebcf869555238db0135125e221ba12ed41ae Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src/input/backend/qabstractphysicaldevicebackendnode.cpp')
0 files changed, 0 insertions, 0 deletions