From e3c71efbeb9db19c049988c53912730eb503dbcd Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 1 Mar 2018 18:24:36 +0100 Subject: [PATCH] Fix compil warnings --- pcbnew/pcb_general_settings.cpp | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/pcbnew/pcb_general_settings.cpp b/pcbnew/pcb_general_settings.cpp index e94de21f6d..55e077696f 100644 --- a/pcbnew/pcb_general_settings.cpp +++ b/pcbnew/pcb_general_settings.cpp @@ -28,21 +28,24 @@ PCB_GENERAL_SETTINGS::PCB_GENERAL_SETTINGS( FRAME_T aFrameType ) { switch( m_frameType ) { - case FRAME_PCB: - Add( "LegacyAutoDeleteOldTrack", &m_legacyAutoDeleteOldTrack, true ); - Add( "LegacyUse45DegreeTracks",&m_legacyUse45DegreeTracks, true); - Add( "LegacyUseTwoSegmentTracks", &m_legacyUseTwoSegmentTracks, true); - Add( "Use45DegreeGraphicSegments", &m_use45DegreeGraphicSegments, false); - Add( "MagneticPads", reinterpret_cast( &m_magneticPads ), CAPTURE_CURSOR_IN_TRACK_TOOL ); - Add( "MagneticTracks", reinterpret_cast( &m_magneticTracks ), CAPTURE_CURSOR_IN_TRACK_TOOL ); - Add( "EditActionChangesTrackWidth", &m_editActionChangesTrackWidth, false ); - Add( "DragSelects", &m_dragSelects, true ); - break; + case FRAME_PCB: + Add( "LegacyAutoDeleteOldTrack", &m_legacyAutoDeleteOldTrack, true ); + Add( "LegacyUse45DegreeTracks",&m_legacyUse45DegreeTracks, true); + Add( "LegacyUseTwoSegmentTracks", &m_legacyUseTwoSegmentTracks, true); + Add( "Use45DegreeGraphicSegments", &m_use45DegreeGraphicSegments, false); + Add( "MagneticPads", reinterpret_cast( &m_magneticPads ), CAPTURE_CURSOR_IN_TRACK_TOOL ); + Add( "MagneticTracks", reinterpret_cast( &m_magneticTracks ), CAPTURE_CURSOR_IN_TRACK_TOOL ); + Add( "EditActionChangesTrackWidth", &m_editActionChangesTrackWidth, false ); + Add( "DragSelects", &m_dragSelects, true ); + break; - case FRAME_PCB_MODULE_EDITOR: - Add( "Use45DegreeGraphicSegments", &m_use45DegreeGraphicSegments, false); - Add( "DragSelects", &m_dragSelects, true ); - break; + case FRAME_PCB_MODULE_EDITOR: + Add( "Use45DegreeGraphicSegments", &m_use45DegreeGraphicSegments, false); + Add( "DragSelects", &m_dragSelects, true ); + break; + + default: + break; } }