Skip to content
Permalink
Browse files

RoadGraph: fix runtime warnings

  • Loading branch information
Sergey Yakushev
Sergey Yakushev committed Jan 5, 2012
1 parent 8f547a1 commit 3f73c859c3205f13479967f9174859cab66c72e8
Showing with 4 additions and 4 deletions.
  1. +3 −3 src/plugins/roadgraph/linevectorlayerwidget.cpp
  2. +1 −1 src/plugins/roadgraph/shortestpathwidget.cpp
@@ -47,7 +47,7 @@ RgLineVectorLayerSettingsWidget::RgLineVectorLayerSettingsWidget( RgLineVectorLa
v = new QVBoxLayout( frame );
QLabel *l = new QLabel( tr( "Layer" ), frame );
mcbLayers = new QComboBox( frame );
QHBoxLayout *h = new QHBoxLayout( this );
QHBoxLayout *h = new QHBoxLayout();

h->addWidget( l );
h->addWidget( mcbLayers );
@@ -106,14 +106,14 @@ RgLineVectorLayerSettingsWidget::RgLineVectorLayerSettingsWidget( RgLineVectorLa
h->addWidget( mcbDirectionDefault );
v->addLayout( h );

h = new QHBoxLayout( frame );
h = new QHBoxLayout();
l = new QLabel( tr( "Cost" ), frame );
h->addWidget( l );
l = new QLabel( tr( "Line lengths" ), frame );
h->addWidget( l );
v->addLayout( h );

h = new QHBoxLayout( frame );
h = new QHBoxLayout();
l = new QLabel( tr( "Speed" ), frame );
msbSpeedDefault = new QSpinBox( frame );
msbSpeedDefault->setMinimum( 1 );
@@ -61,7 +61,7 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
QWidget *myWidget = new QWidget( this );
setWidget( myWidget );

QVBoxLayout *v = new QVBoxLayout();
QVBoxLayout *v = new QVBoxLayout( myWidget );
QHBoxLayout *h = NULL;
QLabel *l = NULL;

0 comments on commit 3f73c85

Please sign in to comment.
You can’t perform that action at this time.