Skip to content

Commit 2647e1d

Browse files
committedJan 9, 2012
fix vc warnings
1 parent aa01596 commit 2647e1d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/app/qgsmaptoolcapture.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ void QgsMapToolCapture::validateGeometry()
296296
delete mGeomErrorMarkers.takeFirst();
297297
}
298298

299-
QgsGeometry *g;
299+
QgsGeometry *g = 0;
300300

301301
switch ( mCaptureMode )
302302
{

‎src/providers/grass/qgsgrassprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2481,7 +2481,7 @@ QVector<QgsDataItem*> QgsGrassMapsetItem::createChildren()
24812481

24822482
QString path = mPath + QDir::separator() + "vector" + QDir::separator() + name;
24832483

2484-
QgsDataCollectionItem *map;
2484+
QgsDataCollectionItem *map = 0;
24852485
if ( layerNames.size() != 1 )
24862486
map = new QgsDataCollectionItem( this, name );
24872487
foreach( QString layerName, layerNames )

0 commit comments

Comments
 (0)
Please sign in to comment.