Skip to content
Permalink
Browse files
Fix some gcc build warnings
  • Loading branch information
nyalldawson committed Oct 2, 2017
1 parent d22bfca commit d922b5540e7b7ac0de5f865050c0296fefda3964
Showing with 4 additions and 2 deletions.
  1. +2 −1 src/core/layertree/qgslayertreenode.cpp
  2. +1 −0 src/plugins/georeferencer/qgsgcplist.cpp
  3. +1 −1 src/plugins/georeferencer/qgsgeorefdatapoint.cpp
@@ -30,7 +30,8 @@ QgsLayerTreeNode::QgsLayerTreeNode( QgsLayerTreeNode::NodeType t, bool checked )
}

QgsLayerTreeNode::QgsLayerTreeNode( const QgsLayerTreeNode &other )
: mNodeType( other.mNodeType )
: QObject( nullptr )
, mNodeType( other.mNodeType )
, mChecked( other.mChecked )
, mExpanded( other.mExpanded )
, mProperties( other.mProperties )
@@ -19,6 +19,7 @@
#include "qgsgcplist.h"

QgsGCPList::QgsGCPList( const QgsGCPList &list )
: QList<QgsGeorefDataPoint *>()
{
clear();
QgsGCPList::const_iterator it = list.constBegin();
@@ -39,8 +39,8 @@ QgsGeorefDataPoint::QgsGeorefDataPoint( QgsMapCanvas *srcCanvas, QgsMapCanvas *d
}

QgsGeorefDataPoint::QgsGeorefDataPoint( const QgsGeorefDataPoint &p )
: QObject( nullptr )
{
Q_UNUSED( p );
// we share item representation on canvas between all points
// mGCPSourceItem = new QgsGCPCanvasItem(p.srcCanvas(), p.pixelCoords(), p.mapCoords(), p.isEnabled());
// mGCPDestinationItem = new QgsGCPCanvasItem(p.dstCanvas(), p.pixelCoords(), p.mapCoords(), p.isEnabled());

0 comments on commit d922b55

Please sign in to comment.