]> git.saurik.com Git - wxWidgets.git/commitdiff
oops, forgot default value for MemoryHDC ctor parameter
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 24 Mar 2003 22:48:54 +0000 (22:48 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 24 Mar 2003 22:48:54 +0000 (22:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/private.h

index f932b0c2a5f0417880cc538274e1baaac268aef6..e02361c17e2378f0d974a2e2d0862c07f5a56936 100644 (file)
@@ -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; }