]> git.saurik.com Git - wxWidgets.git/commitdiff
construct wxBasicString directly from wxString instead of passing by mb_str(): this...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 5 Apr 2007 09:58:13 +0000 (09:58 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 5 Apr 2007 09:58:13 +0000 (09:58 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45251 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/ole/automtn.cpp

index a0937bdfdb2b1743c9ea70fe67c616cc8e978c9b..a48d158ed4abc4db0cecaa4e1adff054322949a5 100644 (file)
@@ -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)))
     {