mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-18 00:06:00 -04:00
QgsVariantDelegate::type(): make it obvious to cppcheck that we don't care about the return value of str.toInt()/toDouble()
This commit is contained in:
parent
7278e747f4
commit
0b2b78a149
@ -361,12 +361,12 @@ QVariant::Type QgsVariantDelegate::type( const QVariant &value )
|
||||
|
||||
// is this an int?
|
||||
// perhaps we should treat as double for more flexibility
|
||||
str.toInt( &ok );
|
||||
( void ) str.toInt( &ok );
|
||||
if ( ok )
|
||||
return QVariant::Int;
|
||||
|
||||
// is this a double?
|
||||
str.toDouble( &ok );
|
||||
( void ) str.toDouble( &ok );
|
||||
if ( ok )
|
||||
return QVariant::Double;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user