File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -162,13 +162,20 @@ static QVariant tvl2variant( TVL v )
162
162
inline bool isIntSafe( const QVariant& v )
163
163
{
164
164
if ( v.type () == QVariant::Int ) return true ;
165
+ if ( v.type () == QVariant::UInt ) return true ;
166
+ if ( v.type () == QVariant::LongLong ) return true ;
167
+ if ( v.type () == QVariant::ULongLong ) return true ;
165
168
if ( v.type () == QVariant::Double ) return false ;
166
169
if ( v.type () == QVariant::String ) { bool ok; v.toString ().toInt ( &ok ); return ok; }
167
170
return false ;
168
171
}
169
172
inline bool isDoubleSafe ( const QVariant& v )
170
173
{
171
- if ( v.type () == QVariant::Double || v.type () == QVariant::Int ) return true ;
174
+ if ( v.type () == QVariant::Double ) return true ;
175
+ if ( v.type () == QVariant::Int ) return true ;
176
+ if ( v.type () == QVariant::UInt ) return true ;
177
+ if ( v.type () == QVariant::LongLong ) return true ;
178
+ if ( v.type () == QVariant::ULongLong ) return true ;
172
179
if ( v.type () == QVariant::String ) { bool ok; v.toString ().toDouble ( &ok ); return ok; }
173
180
return false ;
174
181
}
You can’t perform that action at this time.
0 commit comments