From: Vadim Zeitlin Date: Mon, 24 Mar 2003 22:48:54 +0000 (+0000) Subject: oops, forgot default value for MemoryHDC ctor parameter X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9cf743aa7fd7e4c3bf4267c3b3cdd7347ea60c6d?ds=inline oops, forgot default value for MemoryHDC ctor parameter git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index f932b0c2a5..e02361c17e 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -367,7 +367,7 @@ private: class MemoryHDC { public: - MemoryHDC(HDC hdc) { m_hdc = ::CreateCompatibleDC(hdc); } + MemoryHDC(HDC hdc = 0) { m_hdc = ::CreateCompatibleDC(hdc); } ~MemoryHDC() { ::DeleteDC(m_hdc); } operator HDC() const { return m_hdc; }