X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8dffb6b1a7ddfbb22667d9544dbe11ca49ca046c..1f0acb435592470b421b80df854fbbb08cd2853f:/include/wx/buffer.h diff --git a/include/wx/buffer.h b/include/wx/buffer.h index 574d0df073..254605edf7 100644 --- a/include/wx/buffer.h +++ b/include/wx/buffer.h @@ -95,7 +95,7 @@ public: // Creates "owned" buffer, i.e. takes over ownership of 'str' and frees it // in dtor (if ref.count reaches 0). static - const wxScopedCharTypeBuffer CreateOwned(const CharType *str, + const wxScopedCharTypeBuffer CreateOwned(CharType *str, size_t len = wxNO_LEN ) { if ( len == wxNO_LEN ) @@ -103,7 +103,7 @@ public: wxScopedCharTypeBuffer buf; if ( str ) - buf.m_data = new Data(StrCopy(str, len), len); + buf.m_data = new Data(str, len); return buf; } @@ -260,7 +260,7 @@ public: { if ( len == wxNO_LEN ) len = wxStrlen(str); - this->m_data = new Data(StrCopy(str, len), len); + this->m_data = new Data(this->StrCopy(str, len), len); } else { @@ -295,7 +295,7 @@ public: wxCharTypeBuffer(const wxScopedCharTypeBuffer& src) { - MakeOwnedCopyOf(src); + this->MakeOwnedCopyOf(src); } wxCharTypeBuffer& operator=(const wxScopedCharTypeBuffer& src)