]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/buffer.h
Refactored validation of numeric properties (wxIntProperty, wxUIntProperty and wxFloa...
[wxWidgets.git] / include / wx / buffer.h
index 574d0df0734f10abf23767c93be21b1d7fc48935..4c5c27eede9c6d9447b5d833644a9b5ee52e31c0 100644 (file)
@@ -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;
     }