Skip to content

Commit d922b55

Browse files
committed
Fix some gcc build warnings
1 parent d22bfca commit d922b55

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/core/layertree/qgslayertreenode.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ QgsLayerTreeNode::QgsLayerTreeNode( QgsLayerTreeNode::NodeType t, bool checked )
3030
}
3131

3232
QgsLayerTreeNode::QgsLayerTreeNode( const QgsLayerTreeNode &other )
33-
: mNodeType( other.mNodeType )
33+
: QObject( nullptr )
34+
, mNodeType( other.mNodeType )
3435
, mChecked( other.mChecked )
3536
, mExpanded( other.mExpanded )
3637
, mProperties( other.mProperties )

src/plugins/georeferencer/qgsgcplist.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "qgsgcplist.h"
2020

2121
QgsGCPList::QgsGCPList( const QgsGCPList &list )
22+
: QList<QgsGeorefDataPoint *>()
2223
{
2324
clear();
2425
QgsGCPList::const_iterator it = list.constBegin();

src/plugins/georeferencer/qgsgeorefdatapoint.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ QgsGeorefDataPoint::QgsGeorefDataPoint( QgsMapCanvas *srcCanvas, QgsMapCanvas *d
3939
}
4040

4141
QgsGeorefDataPoint::QgsGeorefDataPoint( const QgsGeorefDataPoint &p )
42+
: QObject( nullptr )
4243
{
43-
Q_UNUSED( p );
4444
// we share item representation on canvas between all points
4545
// mGCPSourceItem = new QgsGCPCanvasItem(p.srcCanvas(), p.pixelCoords(), p.mapCoords(), p.isEnabled());
4646
// mGCPDestinationItem = new QgsGCPCanvasItem(p.dstCanvas(), p.pixelCoords(), p.mapCoords(), p.isEnabled());

0 commit comments

Comments
 (0)