Navigation Menu

Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 11, 2015
1 parent fd2ad13 commit f03f108
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/gui/qgsmapmouseevent.cpp
Expand Up @@ -19,10 +19,12 @@

#include "qgssnappingutils.h"

/// @cond
struct EdgesOnlyFilter : public QgsPointLocator::MatchFilter
{
bool acceptMatch( const QgsPointLocator::Match& m ) override { return m.hasEdge(); }
};
/// @endcond

QgsMapMouseEvent::QgsMapMouseEvent( QgsMapCanvas* mapCanvas, QMouseEvent* event )
: QMouseEvent( event->type(), event->pos(), event->button(), event->buttons(), event->modifiers() )
Expand Down
3 changes: 2 additions & 1 deletion src/gui/qgsmapmouseevent.h
Expand Up @@ -70,9 +70,10 @@ class GUI_EXPORT QgsMapMouseEvent : public QMouseEvent
QgsPoint snapPoint( SnappingMode snappingMode );

/**
* returns the first snapped segment. If the cached snapped match is a segment, it will simply return it.
* Returns the first snapped segment. If the cached snapped match is a segment, it will simply return it.
* Otherwise it will try to snap a segment according to the event's snapping mode. In this case the cache
* will not be overwritten.
* @param snappingMode snapping mode
* @param snapped if given, determines if a segment has been snapped
* @param allLayers if true, override snapping mode
*/
Expand Down

0 comments on commit f03f108

Please sign in to comment.