From c0ed226682836325dfbb791db12405916edfa15f Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Fri, 4 Apr 2014 13:43:12 -0500 Subject: [PATCH] remove a warning message --- pcbnew/class_board_connected_item.cpp | 15 +++------------ pcbnew/modview_frame.cpp | 2 +- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/pcbnew/class_board_connected_item.cpp b/pcbnew/class_board_connected_item.cpp index 73bdced99a..0248131d35 100644 --- a/pcbnew/class_board_connected_item.cpp +++ b/pcbnew/class_board_connected_item.cpp @@ -109,9 +109,7 @@ int BOARD_CONNECTED_ITEM::GetClearance( BOARD_CONNECTED_ITEM* aItem ) const } else { -#ifdef DEBUG - wxLogWarning(wxT("BOARD_CONNECTED_ITEM::GetClearance():NULL netclass,type %d"), Type() ); -#endif + DBG(printf( "%s: NULL netclass,type %d", __func__, Type() );) } return 0; @@ -129,9 +127,7 @@ NETCLASS* BOARD_CONNECTED_ITEM::GetNetClass() const if( board == NULL ) // Should not occur { -#ifdef DEBUG - wxLogWarning( wxT("BOARD_CONNECTED_ITEM::GetNetClass():NULL board,type %d"), Type() ); -#endif + DBG(printf( "%s: NULL board,type %d", __func__, Type() );) return NULL; } @@ -142,12 +138,7 @@ NETCLASS* BOARD_CONNECTED_ITEM::GetNetClass() const { netclass = net->GetNetClass(); -#ifdef DEBUG - if( netclass == NULL ) - { - wxLogWarning( wxT("BOARD_CONNECTED_ITEM::GetNetClass():NULL netclass,type %d"), Type() ); - } -#endif + //DBG( if(!netclass) printf( "%s: NULL netclass,type %d", __func__, Type() );) } if( netclass ) diff --git a/pcbnew/modview_frame.cpp b/pcbnew/modview_frame.cpp index 96313fde13..b79a2c4d3c 100644 --- a/pcbnew/modview_frame.cpp +++ b/pcbnew/modview_frame.cpp @@ -281,7 +281,7 @@ FOOTPRINT_VIEWER_FRAME* FOOTPRINT_VIEWER_FRAME::GetActiveFootprintViewer( const // most immediate parent's. // NOTE: an open FOOTPRINT_VIEWER_FRAME may have either the PCB_EDIT_FRAME - // or the FOOTPRINT_EDIT_FRAME. + // or the FOOTPRINT_EDIT_FRAME as parent. KIWAY* kiway = &aParent->Kiway(); wxWindow* frame;