Browse Source
* Remove virtual BOARD_ITEM::{Get,Set}Position() which in turn means all
* Remove virtual BOARD_ITEM::{Get,Set}Position() which in turn means all
derived classes' implementations of these functions become non virtual and
can be truly _inlined_ for speed! All GetPosition() in derived classes were also
changed to return const wxPoint&, that is, a reference rather than a
full copy of the position wxPoint. There was no need for polymorphism in
{Get,Set}Position() since we never call these functions via generic pointer.
* Remove BOARD::{Get,Set}Position() since they were only there to satisfy
the pure virtuals established in BOARD_ITEM, which are now gone.
* Added const wxPoint& CPolyLine::GetPos(), made CPolyLine::Get{X,Y}() inline.
* Derive CPolyPt from wxPoint so we can return "const wxPoint&" fromt
CPolyLine::GetPos().
pull/1/head
20 changed files with 80 additions and 77 deletions
-
18CHANGELOG.txt
-
11gerbview/class_gerber_draw_item.h
-
13include/base_struct.h
-
6include/class_board_item.h
-
6pcbnew/class_board.h
-
2pcbnew/class_dimension.h
-
2pcbnew/class_drawsegment.h
-
8pcbnew/class_marker_pcb.h
-
2pcbnew/class_mire.h
-
4pcbnew/class_module.h
-
4pcbnew/class_pad.h
-
4pcbnew/class_pcb_text.h
-
4pcbnew/class_text_mod.h
-
12pcbnew/class_track.h
-
9pcbnew/class_zone.cpp
-
8pcbnew/class_zone.h
-
12pcbnew/drc_marker_functions.cpp
-
3pcbnew/move-drag_pads.cpp
-
12polygon/PolyLine.cpp
-
17polygon/PolyLine.h
Write
Preview
Loading…
Cancel
Save
Reference in new issue