diff --git a/pcbnew/tracks_cleaner.cpp b/pcbnew/tracks_cleaner.cpp index a291c15331..b853e02cc2 100644 --- a/pcbnew/tracks_cleaner.cpp +++ b/pcbnew/tracks_cleaner.cpp @@ -152,7 +152,7 @@ void PCB_EDIT_FRAME::Clean_Pcb() // Old model has to be refreshed, GAL normally does not keep updating it Compile_Ratsnest( NULL, false ); - wxBusyCursor( dummy ); + wxBusyCursor dummy; BOARD_COMMIT commit( this ); TRACKS_CLEANER cleaner( GetBoard(), commit );