From: Robert Roebling Date: Mon, 12 Nov 2007 19:03:03 +0000 (+0000) Subject: add const overload for GetImpl() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/3204315276e6601e9d4d43ffb873f9ced6b2eb29 add const overload for GetImpl() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49862 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/dc.h b/include/wx/dc.h index 9810b919d7..403fbd5157 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -518,6 +518,9 @@ public: wxImplDC *GetImpl() { return m_pimpl; } + const wxImplDC *GetImpl() const + { return m_pimpl; } + bool IsOk() const { return m_pimpl && m_pimpl->IsOk(); }