From 98d2e76fcc2de340255ad8322fd32893c22b082c Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 24 Feb 2014 08:32:45 -0500 Subject: [PATCH] Unnecessary c_str call in WII_IPC_HLE_Device_es.cpp's OpenTitleContent function. m_ContentFile is a string, so it's kind of pointless to pass a c_str of a string to constructor of a new string. --- Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_es.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_es.cpp b/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_es.cpp index 90f586414c..a64cfdc72a 100644 --- a/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_es.cpp +++ b/Source/Core/Core/IPC_HLE/WII_IPC_HLE_Device_es.cpp @@ -953,7 +953,7 @@ bool CWII_IPC_HLE_Device_es::IOCtlV(u32 _CommandAddress) for (unsigned int i = 0; i < size; i++) wiiMoteConnected[i] = s_Usb->m_WiiMotes[i].IsConnected(); - std::string tContentFile(m_ContentFile.c_str()); + std::string tContentFile(m_ContentFile); WII_IPC_HLE_Interface::Reset(true); WII_IPC_HLE_Interface::Init();