From: Vadim Zeitlin Date: Thu, 5 Apr 2007 09:58:13 +0000 (+0000) Subject: construct wxBasicString directly from wxString instead of passing by mb_str(): this... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/5149f75b93a8aa65cbab37eb0b451fafa0645b42 construct wxBasicString directly from wxString instead of passing by mb_str(): this is completely unnecessary (and also happens not to compile in Unicode build currently) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/ole/automtn.cpp b/src/msw/ole/automtn.cpp index a0937bdfdb..a48d158ed4 100644 --- a/src/msw/ole/automtn.cpp +++ b/src/msw/ole/automtn.cpp @@ -498,7 +498,7 @@ bool wxAutomationObject::GetInstance(const wxString& classId) const CLSID clsId; IUnknown * pUnk = NULL; - wxBasicString unicodeName(classId.mb_str()); + wxBasicString unicodeName(classId); if (FAILED(CLSIDFromProgID((BSTR) unicodeName, &clsId))) { @@ -530,7 +530,7 @@ bool wxAutomationObject::CreateInstance(const wxString& classId) const CLSID clsId; - wxBasicString unicodeName(classId.mb_str()); + wxBasicString unicodeName(classId); if (FAILED(CLSIDFromProgID((BSTR) unicodeName, &clsId))) {