Replace calls to deprecated wxBasicString::Get() with calls to wxBasicString::Detach() which is not deprecated but also more efficient in cases like these.
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
|
||||
WXDLLEXPORT BSTR wxConvertStringToOle(const wxString& str)
|
||||
{
|
||||
return wxBasicString(str).Get();
|
||||
return wxBasicString(str).Detach();
|
||||
}
|
||||
|
||||
WXDLLEXPORT wxString wxConvertStringFromOle(BSTR bStr)
|
||||
|
||||
Reference in New Issue
Block a user