Skip to content

Commit 36f9037

Browse files
committedDec 23, 2011
fix runtime warnings
1 parent 06aeb14 commit 36f9037

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed
 

‎src/app/qgsbrowserdockwidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ QgsBrowserDockWidget::QgsBrowserDockWidget( QWidget * parent ) :
7474
mRefreshButton->setAutoRaise( true );
7575
connect( mRefreshButton, SIGNAL( clicked() ), this, SLOT( refresh() ) );
7676

77-
QVBoxLayout* layout = new QVBoxLayout( this );
77+
QVBoxLayout* layout = new QVBoxLayout();
7878
layout->setContentsMargins( 0, 0, 0, 0 );
7979
layout->setSpacing( 0 );
8080
layout->addWidget( mRefreshButton );

‎src/plugins/roadgraph/shortestpathwidget.cpp

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

64-
QVBoxLayout *v = new QVBoxLayout( myWidget );
64+
QVBoxLayout *v = new QVBoxLayout();
6565
QHBoxLayout *h = NULL;
6666
QLabel *l = NULL;
6767

@@ -89,7 +89,7 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
8989
h->addWidget( selectBackPoint );
9090
v->addLayout( h );
9191

92-
h = new QHBoxLayout( this );
92+
h = new QHBoxLayout();
9393
l = new QLabel( tr( "Criterion" ), myWidget );
9494
mCriterionName = new QComboBox( myWidget );
9595
mCriterionName->insertItem( 0, tr( "Length" ) );
@@ -98,23 +98,23 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
9898
h->addWidget( mCriterionName );
9999
v->addLayout( h );
100100

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

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

117-
h = new QHBoxLayout( myWidget );
117+
h = new QHBoxLayout();
118118
mCalculate = new QPushButton( tr( "Calculate" ), myWidget );
119119
h->addWidget( mCalculate );
120120
QPushButton *pbExport = new QPushButton( tr( "Export" ), myWidget );
@@ -126,7 +126,7 @@ RgShortestPathWidget::RgShortestPathWidget( QWidget* theParent, RoadGraphPlugin
126126
h->addWidget( mClear );
127127
v->addLayout( h );
128128

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

0 commit comments

Comments
 (0)
Please sign in to comment.