From 5149f75b93a8aa65cbab37eb0b451fafa0645b42 Mon Sep 17 00:00:00 2001
From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Thu, 5 Apr 2007 09:58:13 +0000
Subject: [PATCH] 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
---
 src/msw/ole/automtn.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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)))
     {
-- 
2.47.2