]> git.saurik.com Git - wxWidgets.git/commitdiff
fix const error on sane (not msvc) compilers
authorRyan Norton <wxprojects@comcast.net>
Sun, 31 Oct 2004 06:13:18 +0000 (06:13 +0000)
committerRyan Norton <wxprojects@comcast.net>
Sun, 31 Oct 2004 06:13:18 +0000 (06:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/string.cpp

index eb2d9d442d3147a0cc61cd364133607daa4a62f1..c638d436ec01b694091847680a5dd35decc55f7d 100644 (file)
@@ -1118,7 +1118,7 @@ wxString::wxString(const wchar_t *pwz, wxMBConv& conv, size_t nLength)
 
             //Do the actual conversion & Set the length of the buffer
             internalBuffer.SetLength(
-                   conv.WC2MB(*this, pwz, dwConvLen + 1, nLen)
+                   conv.WC2MB(internalBuffer, pwz, dwConvLen + 1, nLen)
                                     );
         }
     }