Skip to content

Commit 9ca0354

Browse files
committed
fix warnings
1 parent ca1192d commit 9ca0354

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/providers/delimitedtext/qgsdelimitedtextprovider.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1206,7 +1206,7 @@ void QgsDelimitedTextProvider::fetchAttribute( QgsFeature& feature, int fieldIdx
12061206
{
12071207
case QVariant::Int:
12081208
{
1209-
int ivalue;
1209+
int ivalue = 0;
12101210
bool ok = false;
12111211
if ( ! value.isEmpty() ) ivalue = value.toInt( &ok );
12121212
if ( ok )
@@ -1217,7 +1217,7 @@ void QgsDelimitedTextProvider::fetchAttribute( QgsFeature& feature, int fieldIdx
12171217
}
12181218
case QVariant::Double:
12191219
{
1220-
double dvalue;
1220+
double dvalue = 0.0;
12211221
bool ok = false;
12221222
if ( ! value.isEmpty() )
12231223
{

0 commit comments

Comments
 (0)