X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..34b239ec5d9c20a78adaa2dd680bd482b43a68f7:/src/common/gdicmn.cpp diff --git a/src/common/gdicmn.cpp b/src/common/gdicmn.cpp index 06117b98c2..e87361656b 100644 --- a/src/common/gdicmn.cpp +++ b/src/common/gdicmn.cpp @@ -252,6 +252,11 @@ wxRect operator*(const wxRect& r1, const wxRect& r2) return wxRect(x1, y1, x2-x1, y2-y1); } +wxRealPoint::wxRealPoint(const wxPoint& pt) + : x(pt.x), y(pt.y) +{ +} + // ============================================================================ // wxColourDatabase // ============================================================================ @@ -521,8 +526,7 @@ void wxStockGDI::DeleteAll() { for (unsigned i = 0; i < ITEMCOUNT; i++) { - delete ms_stockObject[i]; - ms_stockObject[i] = NULL; + wxDELETE(ms_stockObject[i]); } }