Fixed a hidden overloaded virtual function warning in PNS

This commit is contained in:
Maciej Suminski
2017-01-18 13:22:18 +01:00
parent ee2b1ac321
commit ee862e1db4
3 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
/*
* KiRouter - a push-and-(sometimes-)shove PCB router
*
* Copyright (C) 2013-2014 CERN
* Copyright (C) 2013-2017 CERN
* Copyright (C) 2016 KiCad Developers, see AUTHORS.txt for contributors.
* Author: Tomasz Wlostowski <[email protected]>
*
@@ -298,12 +298,12 @@ public:
return NULL;
}
virtual void Mark(int aMarker)
virtual void Mark( int aMarker )
{
m_marker = aMarker;
}
virtual void Unmark(int aMarker = -1)
virtual void Unmark( int aMarker = -1 )
{
m_marker &= ~aMarker;
}
+3 -3
View File
@@ -1,7 +1,7 @@
/*
* KiRouter - a push-and-(sometimes-)shove PCB router
*
* Copyright (C) 2013-2014 CERN
* Copyright (C) 2013-2017 CERN
* Copyright (C) 2016 KiCad Developers, see AUTHORS.txt for contributors.
* Author: Tomasz Wlostowski <[email protected]>
*
@@ -93,10 +93,10 @@ void LINE::Mark( int aMarker )
}
void LINE::Unmark()
void LINE::Unmark( int aMarker )
{
for( SEGMENT* s : m_segmentRefs )
s->Unmark();
s->Unmark( aMarker );
m_marker = 0;
}
+2 -2
View File
@@ -1,7 +1,7 @@
/*
* KiRouter - a push-and-(sometimes-)shove PCB router
*
* Copyright (C) 2013-2014 CERN
* Copyright (C) 2013-2017 CERN
* Copyright (C) 2016 KiCad Developers, see AUTHORS.txt for contributors.
* Author: Tomasz Wlostowski <[email protected]>
*
@@ -253,7 +253,7 @@ public:
const VIA& Via() const { return m_via; }
virtual void Mark( int aMarker ) override;
virtual void Unmark ();
virtual void Unmark( int aMarker = -1 ) override;
virtual int Marker() const override;
void DragSegment( const VECTOR2I& aP, int aIndex, int aSnappingThreshold = 0 );