---
 pcbnew/router/pns_diff_pair.cpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/pcbnew/router/pns_diff_pair.cpp b/pcbnew/router/pns_diff_pair.cpp
index 2af6f3e..c08af7c 100644
--- a/pcbnew/router/pns_diff_pair.cpp
+++ b/pcbnew/router/pns_diff_pair.cpp
@@ -623,9 +623,8 @@ void PNS_DP_GATEWAYS::BuildGeneric( const VECTOR2I& p0_p, 
const VECTOR2I& p0_n,
     {
         for( int j = 0; j < 2; j++ )
         {
-            OPT_VECTOR2I ips[2], m;
+            OPT_VECTOR2I ips[2];
 
-            m = OPT_VECTOR2I();
             ips[0] = d_n[i].IntersectLines( d_p[j] );
             ips[1] = st_p[i].IntersectLines( st_n[j] );
 
@@ -658,7 +657,7 @@ void PNS_DP_GATEWAYS::BuildGeneric( const VECTOR2I& p0_p, 
const VECTOR2I& p0_n,
   //          diagonal-straight cases: 8 possibilities of "weirder" exists
             for( int k = 0; k < 2; k++ )
             {
-                m = ips[k];
+                OPT_VECTOR2I m = ips[k];
 
                 if( !aViaMode && m && *m != p0_p && *m != p0_n )
                 {
-- 
2.1.4


_______________________________________________
Mailing list: https://launchpad.net/~kicad-developers
Post to     : kicad-developers@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kicad-developers
More help   : https://help.launchpad.net/ListHelp

Reply via email to