Ticket #10712 (closed defect: fixed)
Make wxDC::DrawLines(), DrawPolygon() and DrawPolyPolygon() accept const points array
| Reported by: | vadz | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.0 |
| Component: | GUI-all | Version: | |
| Keywords: | wxDC const simple API | Cc: | |
| Blocked By: | Patch: | no | |
| Blocking: |
Description
Currently code such as
const std::vector<wxPoint> points;
...
dc.DrawPolygon(points.size(), const_cast<wxPoint *>(&points[0]));
needs this ugly const_cast which is unfortunate as the array is not modified by the drawing function, of course. This must be fixed.
Change History
Note: See
TracTickets for help on using
tickets.
