Skip to content

Commit b508bf7

Browse files
committedOct 26, 2017
Build and review fixes
1 parent 568b22d commit b508bf7

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed
 

‎python/gui/gui_auto.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
%Include qgsmapmouseevent.sip
1515
%Include qgsmaptip.sip
1616
%Include qgsrubberband.sip
17+
%Include qgssnapindicator.sip
1718
%Include qgstablewidgetitem.sip
1819
%Include qgsuserinputdockwidget.sip
1920
%Include qgsbrowserdockwidget.sip
@@ -188,7 +189,6 @@
188189
%Include qgssearchquerybuilder.sip
189190
%Include qgsshortcutsmanager.sip
190191
%Include qgsslider.sip
191-
%Include qgssnapindicator.sip
192192
%Include qgsstatusbar.sip
193193
%Include qgssublayersdialog.sip
194194
%Include qgssubstitutionlistwidget.sip

‎python/gui/qgssnapindicator.sip

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ Returns whether the snapping indicator is visible
4848
:rtype: bool
4949
%End
5050

51+
private:
52+
QgsSnapIndicator( const QgsSnapIndicator &rh );
53+
QgsSnapIndicator &operator=( const QgsSnapIndicator & );
54+
%Docstring
55+
:rtype: QgsSnapIndicator
56+
%End
5157
};
5258

5359
/************************************************************************

‎src/gui/qgssnapindicator.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@ QgsSnapIndicator::QgsSnapIndicator( QgsMapCanvas *canvas )
2828
{
2929
}
3030

31-
QgsSnapIndicator::~QgsSnapIndicator()
32-
{
33-
}
31+
QgsSnapIndicator::~QgsSnapIndicator() = default;
32+
3433

3534
void QgsSnapIndicator::setMatch( const QgsPointLocator::Match &match )
3635
{

‎src/gui/qgssnapindicator.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ class GUI_EXPORT QgsSnapIndicator
4747
bool isVisible() const;
4848

4949
private:
50+
Q_DISABLE_COPY( QgsSnapIndicator )
51+
52+
#ifdef SIP_RUN
53+
QgsSnapIndicator( const QgsSnapIndicator &rh );
54+
QgsSnapIndicator &operator=( const QgsSnapIndicator & );
55+
#endif
56+
5057
QgsMapCanvas *mCanvas;
5158
QgsPointLocator::Match mMatch;
5259
std::unique_ptr<QgsVertexMarker> mSnappingMarker;

0 commit comments

Comments
 (0)
Please sign in to comment.