X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f43707413ac4f7ffbf7385df09c1e3d60aeca455..b9efe021b554fa3967d1442cf758435c5cd5ae8f:/src/common/dobjcmn.cpp diff --git a/src/common/dobjcmn.cpp b/src/common/dobjcmn.cpp index ac306c2d90..a37ffa50e6 100644 --- a/src/common/dobjcmn.cpp +++ b/src/common/dobjcmn.cpp @@ -281,7 +281,7 @@ size_t wxTextDataObject::GetDataSize(const wxDataFormat& format) const if (format == wxDF_UNICODETEXT) { // host native is UTF16 - wxMBConvUTF16BE converter ; + wxMBConvUTF16 converter ; return converter.WC2MB( NULL , GetText().c_str() , 0 ) + 2; // add space for trailing unichar 0 } else // == wxDF_TEXT @@ -296,7 +296,7 @@ bool wxTextDataObject::GetDataHere(const wxDataFormat& format, void *buf) const if (format == wxDF_UNICODETEXT) { // host native is UTF16 - wxMBConvUTF16BE converter ; + wxMBConvUTF16 converter ; size_t len = converter.WC2MB( NULL , GetText().c_str() , 0 ) ; wxCharBuffer buffer = converter.cWX2MB( GetText().c_str() ); memcpy( (char*) buf, (const char*) buffer , len + 2); // trailing unichar 0 @@ -316,7 +316,7 @@ bool wxTextDataObject::SetData(const wxDataFormat& format, if (format == wxDF_UNICODETEXT) { // host native is UTF16 - wxMBConvUTF16BE converter ; + wxMBConvUTF16 converter ; SetText( converter.cMB2WX( (const char*) buf ) ); } else