Skip to content

Commit 07c7b5a

Browse files
jef-nalexbruy
authored andcommittedDec 25, 2011
fix runtime warnings
1 parent 5c7f817 commit 07c7b5a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎src/plugins/roadgraph/shortestpathwidget.cpp‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
5959
QWidget *myWidget = new QWidget( this );
6060
setWidget( myWidget );
6161

62-
QVBoxLayout *v = new QVBoxLayout( myWidget );
62+
QVBoxLayout *v = new QVBoxLayout();
6363
QHBoxLayout *h = NULL;
6464
QLabel *l = NULL;
6565

@@ -87,7 +87,7 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
8787
h->addWidget( selectBackPoint );
8888
v->addLayout( h );
8989

90-
h = new QHBoxLayout( this );
90+
h = new QHBoxLayout();
9191
l = new QLabel( tr( "Criterion" ), myWidget );
9292
mCriterionName = new QComboBox( myWidget );
9393
mCriterionName->insertItem( 0, tr( "Length" ) );
@@ -96,23 +96,23 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
9696
h->addWidget( mCriterionName );
9797
v->addLayout( h );
9898

99-
h = new QHBoxLayout( myWidget );
99+
h = new QHBoxLayout();
100100
l = new QLabel( tr( "Length" ), myWidget );
101101
mPathCostLineEdit = new QLineEdit( myWidget );
102102
mPathCostLineEdit->setReadOnly( true );
103103
h->addWidget( l );
104104
h->addWidget( mPathCostLineEdit );
105105
v->addLayout( h );
106106

107-
h = new QHBoxLayout( myWidget );
107+
h = new QHBoxLayout();
108108
l = new QLabel( tr( "Time" ), myWidget );
109109
mPathTimeLineEdit = new QLineEdit( myWidget );
110110
mPathTimeLineEdit->setReadOnly( true );
111111
h->addWidget( l );
112112
h->addWidget( mPathTimeLineEdit );
113113
v->addLayout( h );
114114

115-
h = new QHBoxLayout( myWidget );
115+
h = new QHBoxLayout();
116116
mCalculate = new QPushButton( tr( "Calculate" ), myWidget );
117117
h->addWidget( mCalculate );
118118
QPushButton *pbExport = new QPushButton( tr( "Export" ), myWidget );
@@ -124,7 +124,7 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
124124
h->addWidget( mClear );
125125
v->addLayout( h );
126126

127-
h = new QHBoxLayout( myWidget );
127+
h = new QHBoxLayout();
128128
QPushButton *helpButton = new QPushButton( tr( "Help" ), this );
129129
helpButton->setIcon( this->style()->standardIcon( QStyle::SP_DialogHelpButton ) );
130130
h->addWidget( helpButton );

0 commit comments

Comments
 (0)
Please sign in to comment.