Loading eeschema/dialogs/dialog_edit_label.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -140,7 +140,7 @@ void DIALOG_LABEL_EDITOR::InitDialog() break; break; } } int MINTEXTWIDTH = 40; // M's are big characters, a few establish a lot of width const int MINTEXTWIDTH = 40; // M's are big characters, a few establish a lot of width int max_len = 0; int max_len = 0; Loading gerbview/dialogs/dialog_print_using_printer.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -138,7 +138,7 @@ void DIALOG_PRINT_USING_PRINTER::InitValues( ) s_Parameters.m_PageSetupData = g_pageSetupData; s_Parameters.m_PageSetupData = g_pageSetupData; layer_max = 32; layer_max = 32; /* Create layer list */ // Create layer list int mask = 1, ii; int mask = 1, ii; for( ii = 0; ii < layer_max; ii++, mask <<= 1 ) for( ii = 0; ii < layer_max; ii++, mask <<= 1 ) { { Loading pcbnew/attribut.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -80,7 +80,7 @@ void PCB_EDIT_FRAME::Attribut_Track( TRACK* track, wxDC* DC, bool Flag_On ) for( ; (Track != NULL) && (nb_segm > 0); nb_segm-- ) for( ; (Track != NULL) && (nb_segm > 0); nb_segm-- ) { { Track->SetState( TRACK_LOCKED, Flag_On ); Track->SetState( TRACK_LOCKED, Flag_On ); Track->SetState( BUSY, OFF ); Track->SetState( BUSY, false ); Track = Track->Next(); Track = Track->Next(); } } Loading pcbnew/class_text_mod.h +0 −11 Original line number Original line Diff line number Diff line Loading @@ -132,17 +132,6 @@ public: bool IsOnLayer( int aLayer ) const; bool IsOnLayer( int aLayer ) const; /* * Function IsOnOneOfTheseLayers * returns true if this object is on one of the given layers. Is virtual * so objects like D_PAD, which reside on multiple layers, can do their own * form of testing. * virtual inheritance from BOARD_ITEM. (not yet written) * @param aLayerMask The bit-mapped set of layers to test for. * @return bool - true if on one of the given layers, else false. * bool IsOnOneOfTheseLayers( int aLayerMask ) const; */ wxString GetClass() const wxString GetClass() const { { Loading pcbnew/clean.cpp +11 −11 Original line number Original line Diff line number Diff line Loading @@ -345,7 +345,7 @@ bool TRACKS_CLEANER::deleteUnconnectedTracks() if( other && other->Type() == PCB_VIA_T ) if( other && other->Type() == PCB_VIA_T ) { { // search for another segment following the via // search for another segment following the via track->SetState( BUSY, ON ); track->SetState( BUSY, true ); SEGVIA* via = (SEGVIA*) other; SEGVIA* via = (SEGVIA*) other; other = via->GetTrace( m_Brd->m_Track, NULL, FLG_START ); other = via->GetTrace( m_Brd->m_Track, NULL, FLG_START ); Loading @@ -360,7 +360,7 @@ bool TRACKS_CLEANER::deleteUnconnectedTracks() if( (other == NULL) && (zone == NULL) ) if( (other == NULL) && (zone == NULL) ) flag_erase |= 2; flag_erase |= 2; track->SetState( BUSY, OFF ); track->SetState( BUSY, false ); } } } } } } Loading Loading @@ -401,7 +401,7 @@ bool TRACKS_CLEANER::deleteUnconnectedTracks() { { // search for another segment following the via // search for another segment following the via track->SetState( BUSY, ON ); track->SetState( BUSY, true ); SEGVIA* via = (SEGVIA*) other; SEGVIA* via = (SEGVIA*) other; other = via->GetTrace( m_Brd->m_Track, NULL, FLG_END ); other = via->GetTrace( m_Brd->m_Track, NULL, FLG_END ); Loading @@ -416,7 +416,7 @@ bool TRACKS_CLEANER::deleteUnconnectedTracks() if( (other == NULL) && (zone == NULL) ) if( (other == NULL) && (zone == NULL) ) flag_erase |= 0x20; flag_erase |= 0x20; track->SetState( BUSY, OFF ); track->SetState( BUSY, false ); } } } } } } Loading Loading @@ -520,9 +520,9 @@ bool TRACKS_CLEANER::clean_segments() break; break; // We must have only one segment connected // We must have only one segment connected segStart->SetState( BUSY, ON ); segStart->SetState( BUSY, true ); other = segment->GetTrace( m_Brd->m_Track, NULL, FLG_START ); other = segment->GetTrace( m_Brd->m_Track, NULL, FLG_START ); segStart->SetState( BUSY, OFF ); segStart->SetState( BUSY, false ); if( other == NULL ) if( other == NULL ) flag = 1; // OK flag = 1; // OK Loading Loading @@ -558,9 +558,9 @@ bool TRACKS_CLEANER::clean_segments() break; break; // We must have only one segment connected // We must have only one segment connected segEnd->SetState( BUSY, ON ); segEnd->SetState( BUSY, true ); other = segment->GetTrace( m_Brd->m_Track, NULL, FLG_END ); other = segment->GetTrace( m_Brd->m_Track, NULL, FLG_END ); segEnd->SetState( BUSY, OFF ); segEnd->SetState( BUSY, false ); if( other == NULL ) if( other == NULL ) flag |= 2; // Ok flag |= 2; // Ok Loading Loading @@ -731,7 +731,7 @@ bool PCB_EDIT_FRAME::RemoveMisConnectedTracks() for( segment = GetBoard()->m_Track; segment; segment = (TRACK*) segment->Next() ) for( segment = GetBoard()->m_Track; segment; segment = (TRACK*) segment->Next() ) { { segment->SetState( FLAG0, OFF ); segment->SetState( FLAG0, false ); // find the netcode for segment using anything connected to the "start" of "segment" // find the netcode for segment using anything connected to the "start" of "segment" net_code_s = -1; net_code_s = -1; Loading Loading @@ -773,7 +773,7 @@ bool PCB_EDIT_FRAME::RemoveMisConnectedTracks() // Netcodes do not agree, so mark the segment as "to be removed" // Netcodes do not agree, so mark the segment as "to be removed" if( net_code_s != net_code_e ) if( net_code_s != net_code_e ) { { segment->SetState( FLAG0, ON ); segment->SetState( FLAG0, true ); } } } } Loading @@ -784,7 +784,7 @@ bool PCB_EDIT_FRAME::RemoveMisConnectedTracks() if( segment->GetState( FLAG0 ) ) // Segment is flagged to be removed if( segment->GetState( FLAG0 ) ) // Segment is flagged to be removed { { segment->SetState( FLAG0, OFF ); segment->SetState( FLAG0, false ); isModified = true; isModified = true; GetBoard()->m_Status_Pcb = 0; GetBoard()->m_Status_Pcb = 0; Remove_One_Track( NULL, segment ); Remove_One_Track( NULL, segment ); Loading Loading
eeschema/dialogs/dialog_edit_label.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -140,7 +140,7 @@ void DIALOG_LABEL_EDITOR::InitDialog() break; break; } } int MINTEXTWIDTH = 40; // M's are big characters, a few establish a lot of width const int MINTEXTWIDTH = 40; // M's are big characters, a few establish a lot of width int max_len = 0; int max_len = 0; Loading
gerbview/dialogs/dialog_print_using_printer.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -138,7 +138,7 @@ void DIALOG_PRINT_USING_PRINTER::InitValues( ) s_Parameters.m_PageSetupData = g_pageSetupData; s_Parameters.m_PageSetupData = g_pageSetupData; layer_max = 32; layer_max = 32; /* Create layer list */ // Create layer list int mask = 1, ii; int mask = 1, ii; for( ii = 0; ii < layer_max; ii++, mask <<= 1 ) for( ii = 0; ii < layer_max; ii++, mask <<= 1 ) { { Loading
pcbnew/attribut.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -80,7 +80,7 @@ void PCB_EDIT_FRAME::Attribut_Track( TRACK* track, wxDC* DC, bool Flag_On ) for( ; (Track != NULL) && (nb_segm > 0); nb_segm-- ) for( ; (Track != NULL) && (nb_segm > 0); nb_segm-- ) { { Track->SetState( TRACK_LOCKED, Flag_On ); Track->SetState( TRACK_LOCKED, Flag_On ); Track->SetState( BUSY, OFF ); Track->SetState( BUSY, false ); Track = Track->Next(); Track = Track->Next(); } } Loading
pcbnew/class_text_mod.h +0 −11 Original line number Original line Diff line number Diff line Loading @@ -132,17 +132,6 @@ public: bool IsOnLayer( int aLayer ) const; bool IsOnLayer( int aLayer ) const; /* * Function IsOnOneOfTheseLayers * returns true if this object is on one of the given layers. Is virtual * so objects like D_PAD, which reside on multiple layers, can do their own * form of testing. * virtual inheritance from BOARD_ITEM. (not yet written) * @param aLayerMask The bit-mapped set of layers to test for. * @return bool - true if on one of the given layers, else false. * bool IsOnOneOfTheseLayers( int aLayerMask ) const; */ wxString GetClass() const wxString GetClass() const { { Loading
pcbnew/clean.cpp +11 −11 Original line number Original line Diff line number Diff line Loading @@ -345,7 +345,7 @@ bool TRACKS_CLEANER::deleteUnconnectedTracks() if( other && other->Type() == PCB_VIA_T ) if( other && other->Type() == PCB_VIA_T ) { { // search for another segment following the via // search for another segment following the via track->SetState( BUSY, ON ); track->SetState( BUSY, true ); SEGVIA* via = (SEGVIA*) other; SEGVIA* via = (SEGVIA*) other; other = via->GetTrace( m_Brd->m_Track, NULL, FLG_START ); other = via->GetTrace( m_Brd->m_Track, NULL, FLG_START ); Loading @@ -360,7 +360,7 @@ bool TRACKS_CLEANER::deleteUnconnectedTracks() if( (other == NULL) && (zone == NULL) ) if( (other == NULL) && (zone == NULL) ) flag_erase |= 2; flag_erase |= 2; track->SetState( BUSY, OFF ); track->SetState( BUSY, false ); } } } } } } Loading Loading @@ -401,7 +401,7 @@ bool TRACKS_CLEANER::deleteUnconnectedTracks() { { // search for another segment following the via // search for another segment following the via track->SetState( BUSY, ON ); track->SetState( BUSY, true ); SEGVIA* via = (SEGVIA*) other; SEGVIA* via = (SEGVIA*) other; other = via->GetTrace( m_Brd->m_Track, NULL, FLG_END ); other = via->GetTrace( m_Brd->m_Track, NULL, FLG_END ); Loading @@ -416,7 +416,7 @@ bool TRACKS_CLEANER::deleteUnconnectedTracks() if( (other == NULL) && (zone == NULL) ) if( (other == NULL) && (zone == NULL) ) flag_erase |= 0x20; flag_erase |= 0x20; track->SetState( BUSY, OFF ); track->SetState( BUSY, false ); } } } } } } Loading Loading @@ -520,9 +520,9 @@ bool TRACKS_CLEANER::clean_segments() break; break; // We must have only one segment connected // We must have only one segment connected segStart->SetState( BUSY, ON ); segStart->SetState( BUSY, true ); other = segment->GetTrace( m_Brd->m_Track, NULL, FLG_START ); other = segment->GetTrace( m_Brd->m_Track, NULL, FLG_START ); segStart->SetState( BUSY, OFF ); segStart->SetState( BUSY, false ); if( other == NULL ) if( other == NULL ) flag = 1; // OK flag = 1; // OK Loading Loading @@ -558,9 +558,9 @@ bool TRACKS_CLEANER::clean_segments() break; break; // We must have only one segment connected // We must have only one segment connected segEnd->SetState( BUSY, ON ); segEnd->SetState( BUSY, true ); other = segment->GetTrace( m_Brd->m_Track, NULL, FLG_END ); other = segment->GetTrace( m_Brd->m_Track, NULL, FLG_END ); segEnd->SetState( BUSY, OFF ); segEnd->SetState( BUSY, false ); if( other == NULL ) if( other == NULL ) flag |= 2; // Ok flag |= 2; // Ok Loading Loading @@ -731,7 +731,7 @@ bool PCB_EDIT_FRAME::RemoveMisConnectedTracks() for( segment = GetBoard()->m_Track; segment; segment = (TRACK*) segment->Next() ) for( segment = GetBoard()->m_Track; segment; segment = (TRACK*) segment->Next() ) { { segment->SetState( FLAG0, OFF ); segment->SetState( FLAG0, false ); // find the netcode for segment using anything connected to the "start" of "segment" // find the netcode for segment using anything connected to the "start" of "segment" net_code_s = -1; net_code_s = -1; Loading Loading @@ -773,7 +773,7 @@ bool PCB_EDIT_FRAME::RemoveMisConnectedTracks() // Netcodes do not agree, so mark the segment as "to be removed" // Netcodes do not agree, so mark the segment as "to be removed" if( net_code_s != net_code_e ) if( net_code_s != net_code_e ) { { segment->SetState( FLAG0, ON ); segment->SetState( FLAG0, true ); } } } } Loading @@ -784,7 +784,7 @@ bool PCB_EDIT_FRAME::RemoveMisConnectedTracks() if( segment->GetState( FLAG0 ) ) // Segment is flagged to be removed if( segment->GetState( FLAG0 ) ) // Segment is flagged to be removed { { segment->SetState( FLAG0, OFF ); segment->SetState( FLAG0, false ); isModified = true; isModified = true; GetBoard()->m_Status_Pcb = 0; GetBoard()->m_Status_Pcb = 0; Remove_One_Track( NULL, segment ); Remove_One_Track( NULL, segment ); Loading