]> git.saurik.com Git - wxWidgets.git/commitdiff
Oops. The typecasting was interpreted as a constructor call...
authorOve Kaaven <ovek@arcticnet.no>
Sun, 18 Apr 1999 00:18:39 +0000 (00:18 +0000)
committerOve Kaaven <ovek@arcticnet.no>
Sun, 18 Apr 1999 00:18:39 +0000 (00:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2225 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/buffer.h

index f5fc0f9208a8ee45a8f6d0b95e7123d0a3a2a698..87b05070225950cae2034eb811e08286d652f89f 100644 (file)
@@ -43,13 +43,13 @@ public:
    {
      m_str = src.m_str;
      // no reference count yet...
-     (wxCharBuffer)src.m_str = (char *)NULL;
+     ((wxCharBuffer*)&src)->m_str = (char *)NULL;
    }
    wxCharBuffer& operator=(const wxCharBuffer& src)
    {
      m_str = src.m_str;
      // no reference count yet...
-     (wxCharBuffer)src.m_str = (char *)NULL;
+     ((wxCharBuffer*)&src)->m_str = (char *)NULL;
      return *this;
    }