From eea41dbc6f01a4ab7913722a58e8b5664bd8d4eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20W=C5=82ostowski?= Date: Sun, 2 Jul 2017 22:12:56 +0200 Subject: [PATCH] Fixed OSX build error --- pcbnew/connectivity_algo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/connectivity_algo.cpp b/pcbnew/connectivity_algo.cpp index 06a3616a31..85e456e125 100644 --- a/pcbnew/connectivity_algo.cpp +++ b/pcbnew/connectivity_algo.cpp @@ -228,7 +228,7 @@ bool CN_CONNECTIVITY_ALGO::Add( BOARD_ITEM* aItem ) { MarkNetAsDirty( static_cast( aItem )->GetNet() ); break; - } + } case PCB_MODULE_T: for( auto pad : static_cast( aItem ) -> Pads() ) { @@ -755,7 +755,7 @@ void CN_CONNECTIVITY_ALGO::propagateConnections() else if( cluster->IsOrphaned() ) { wxLogTrace( "CN", "Skipping orphaned cluster %p [net: %s]\n", cluster.get(), - (const char*) cluster->OriginNetName() ); + (const char*) cluster->OriginNetName().c_str() ); } else if( cluster->HasValidNet() ) { @@ -774,7 +774,7 @@ void CN_CONNECTIVITY_ALGO::propagateConnections() if( n_changed ) wxLogTrace( "CN", "Cluster %p : net : %d %s\n", cluster.get(), - cluster->OriginNet(), (const char*) cluster->OriginNetName() ); + cluster->OriginNet(), (const char*) cluster->OriginNetName().c_str() ); else wxLogTrace( "CN", "Cluster %p : nothing to propagate\n", cluster.get() ); }