Skip to content

Commit 3b81b1a

Browse files
committedDec 6, 2013
fix warning
1 parent 1e8635c commit 3b81b1a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

‎src/app/ogr/qgsvectorlayersaveasdialog.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ QList<QPair<QLabel*, QWidget*> > QgsVectorLayerSaveAsDialog::createControls( con
9797

9898
for ( it = options.constBegin(); it != options.constEnd(); ++it )
9999
{
100-
QgsVectorFileWriter::Option* option = it.value();
101-
QLabel* label = new QLabel( it.key() );
102-
QWidget* control;
100+
QgsVectorFileWriter::Option *option = it.value();
101+
QLabel *label = new QLabel( it.key() );
102+
QWidget *control = 0;
103103
switch ( option->type )
104104
{
105105
case QgsVectorFileWriter::Int:
@@ -363,7 +363,7 @@ QStringList QgsVectorLayerSaveAsDialog::datasourceOptions() const
363363
case QgsVectorFileWriter::Hidden:
364364
{
365365
QgsVectorFileWriter::HiddenOption *opt =
366-
dynamic_cast<QgsVectorFileWriter::HiddenOption*>( it.value() );
366+
dynamic_cast<QgsVectorFileWriter::HiddenOption*>( it.value() );
367367
options << QString( "%1=%2" ).arg( it.key() ).arg( opt->mValue );
368368
break;
369369
}
@@ -412,7 +412,7 @@ QStringList QgsVectorLayerSaveAsDialog::layerOptions() const
412412
case QgsVectorFileWriter::Hidden:
413413
{
414414
QgsVectorFileWriter::HiddenOption *opt =
415-
dynamic_cast<QgsVectorFileWriter::HiddenOption*>( it.value() );
415+
dynamic_cast<QgsVectorFileWriter::HiddenOption*>( it.value() );
416416
options << QString( "%1=%2" ).arg( it.key() ).arg( opt->mValue );
417417
break;
418418
}

0 commit comments

Comments
 (0)
Please sign in to comment.