From 2f7fbf01cf1671f2c801bd7a644d1874109f0ef2 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 27 Apr 2014 20:19:31 -0700 Subject: [PATCH] Avoid pointless strdup(). --- rpcs3/Gui/VFSManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rpcs3/Gui/VFSManager.cpp b/rpcs3/Gui/VFSManager.cpp index 594063645a..d53d691041 100644 --- a/rpcs3/Gui/VFSManager.cpp +++ b/rpcs3/Gui/VFSManager.cpp @@ -95,9 +95,9 @@ void VFSEntrySettingsDialog::OnSelectDevPath(wxCommandEvent& event) void VFSEntrySettingsDialog::OnOk(wxCommandEvent& event) { - m_entry.device_path = strdup( m_tctrl_dev_path->GetValue().c_str()); - m_entry.path = strdup(m_tctrl_path->GetValue().c_str()); - m_entry.mount = strdup(m_tctrl_mount->GetValue().c_str()); + m_entry.device_path = m_tctrl_dev_path->GetValue().ToStdString(); + m_entry.path = m_tctrl_path->GetValue().ToStdString(); + m_entry.mount = m_tctrl_mount->GetValue().ToStdString(); m_entry.device = (vfsDeviceType)m_ch_type->GetSelection(); EndModal(wxID_OK);