X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f02a879ed7efc5fcf6328ff47a1352ec82812b7..9bb3f212e26b4685f0c6ed7281d50b658ecc1491:/include/wx/x11/dcclient.h diff --git a/include/wx/x11/dcclient.h b/include/wx/x11/dcclient.h index 7f939a3ec9..6ae4962b32 100644 --- a/include/wx/x11/dcclient.h +++ b/include/wx/x11/dcclient.h @@ -32,10 +32,10 @@ class WXDLLIMPEXP_CORE wxClientDC; class WXDLLIMPEXP_CORE wxWindowDC : public wxDC { public: - wxWindowDC(); + wxWindowDC() { Init(); } wxWindowDC( wxWindow *win ); - ~wxWindowDC(); + virtual ~wxWindowDC(); virtual bool CanDrawBitmap() const { return true; } virtual bool CanGetTextExtent() const { return true; } @@ -116,7 +116,9 @@ protected: wxCoord *x, wxCoord *y, wxCoord *descent = NULL, wxCoord *externalLeading = NULL, - wxFont *theFont = NULL) const; + const wxFont *theFont = NULL) const; + + void Init(); WXDisplay *m_display; WXWindow m_window;