From ff9cf0880a2c7dce28e0fdeff305acede8f7900c Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 26 Feb 2016 13:34:30 +0100 Subject: [PATCH] Fix QVariant type check (fix Coverity defect 114155). --- src/modules/license/LicenseViewStep.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/license/LicenseViewStep.cpp b/src/modules/license/LicenseViewStep.cpp index 01e3be0e0..6e5ad2631 100644 --- a/src/modules/license/LicenseViewStep.cpp +++ b/src/modules/license/LicenseViewStep.cpp @@ -114,7 +114,7 @@ LicenseViewStep::setConfigurationMap( const QVariantMap& configurationMap ) { foreach ( const QVariant& entryV, configurationMap.value( "entries" ).toList() ) { - if ( !entryV.type() == QVariant::Map ) + if ( entryV.type() != QVariant::Map ) continue; QVariantMap entryMap = entryV.toMap();