From 9b40caee5a85eb016bd8d9eca57abaceede75add Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Mon, 12 Nov 2007 14:59:22 +0000 Subject: [PATCH] BOARD::Show() cleanup --- pcbnew/class_board.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/pcbnew/class_board.cpp b/pcbnew/class_board.cpp index ebe762e507..c359683800 100644 --- a/pcbnew/class_board.cpp +++ b/pcbnew/class_board.cpp @@ -664,7 +664,7 @@ out: */ void BOARD::Show( int nestLevel, std::ostream& os ) { - EDA_BaseStruct* p; + BOARD_ITEM* p; // for now, make it look like XML: NestedSpace( nestLevel, os ) << '<' << GetClass().Lower().mb_str() << ">\n"; @@ -672,42 +672,42 @@ void BOARD::Show( int nestLevel, std::ostream& os ) // specialization of the output: NestedSpace( nestLevel+1, os ) << "\n"; p = m_Modules; - for( ; p; p = p->Pnext ) + for( ; p; p = p->Next() ) p->Show( nestLevel+2, os ); NestedSpace( nestLevel+1, os ) << "\n"; NestedSpace( nestLevel+1, os ) << "\n"; p = m_Drawings; - for( ; p; p = p->Pnext ) + for( ; p; p = p->Next() ) p->Show( nestLevel+2, os ); NestedSpace( nestLevel+1, os ) << "\n"; NestedSpace( nestLevel+1, os ) << "\n"; p = m_Equipots; - for( ; p; p = p->Pnext ) + for( ; p; p = p->Next() ) p->Show( nestLevel+2, os ); NestedSpace( nestLevel+1, os ) << "\n"; NestedSpace( nestLevel+1, os ) << "\n"; p = m_Track; - for( ; p; p = p->Pnext ) + for( ; p; p = p->Next() ) p->Show( nestLevel+2, os ); NestedSpace( nestLevel+1, os ) << "\n"; NestedSpace( nestLevel+1, os ) << "\n"; p = m_Zone; - for( ; p; p = p->Pnext ) + for( ; p; p = p->Next() ) p->Show( nestLevel+2, os ); NestedSpace( nestLevel+1, os ) << "\n"; NestedSpace( nestLevel+1, os ) << "\n"; p = m_CurrentLimitZone; - for( ; p; p = p->Pnext ) + for( ; p; p = p->Next() ) p->Show( nestLevel+2, os ); NestedSpace( nestLevel+1, os ) << "\n"; - p = m_Son; - for( ; p; p = p->Pnext ) + p = (BOARD_ITEM*) m_Son; + for( ; p; p = p->Next() ) { p->Show( nestLevel+1, os ); }