Skip to content

Commit

Permalink
Build and review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wonder-sk committed Oct 26, 2017
1 parent 568b22d commit b508bf7
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion python/gui/gui_auto.sip
Expand Up @@ -14,6 +14,7 @@
%Include qgsmapmouseevent.sip
%Include qgsmaptip.sip
%Include qgsrubberband.sip
%Include qgssnapindicator.sip
%Include qgstablewidgetitem.sip
%Include qgsuserinputdockwidget.sip
%Include qgsbrowserdockwidget.sip
Expand Down Expand Up @@ -188,7 +189,6 @@
%Include qgssearchquerybuilder.sip
%Include qgsshortcutsmanager.sip
%Include qgsslider.sip
%Include qgssnapindicator.sip
%Include qgsstatusbar.sip
%Include qgssublayersdialog.sip
%Include qgssubstitutionlistwidget.sip
Expand Down
6 changes: 6 additions & 0 deletions python/gui/qgssnapindicator.sip
Expand Up @@ -48,6 +48,12 @@ Returns whether the snapping indicator is visible
:rtype: bool
%End

private:
QgsSnapIndicator( const QgsSnapIndicator &rh );
QgsSnapIndicator &operator=( const QgsSnapIndicator & );
%Docstring
:rtype: QgsSnapIndicator
%End
};

/************************************************************************
Expand Down
5 changes: 2 additions & 3 deletions src/gui/qgssnapindicator.cpp
Expand Up @@ -28,9 +28,8 @@ QgsSnapIndicator::QgsSnapIndicator( QgsMapCanvas *canvas )
{
}

QgsSnapIndicator::~QgsSnapIndicator()
{
}
QgsSnapIndicator::~QgsSnapIndicator() = default;


void QgsSnapIndicator::setMatch( const QgsPointLocator::Match &match )
{
Expand Down
7 changes: 7 additions & 0 deletions src/gui/qgssnapindicator.h
Expand Up @@ -47,6 +47,13 @@ class GUI_EXPORT QgsSnapIndicator
bool isVisible() const;

private:
Q_DISABLE_COPY( QgsSnapIndicator )

#ifdef SIP_RUN
QgsSnapIndicator( const QgsSnapIndicator &rh );
QgsSnapIndicator &operator=( const QgsSnapIndicator & );
#endif

QgsMapCanvas *mCanvas;
QgsPointLocator::Match mMatch;
std::unique_ptr<QgsVertexMarker> mSnappingMarker;
Expand Down

0 comments on commit b508bf7

Please sign in to comment.