Skip to content
Permalink
Browse files
RoadGraph: fix runtime warnings
  • Loading branch information
Sergey Yakushev authored and alexbruy committed Mar 2, 2012
1 parent 730c332 commit 4b88ec35e3e78c6cbc0a58daa217d56d4d2a4228
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 );
@@ -59,7 +59,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 4b88ec3

Please sign in to comment.