mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
Avoid pointless strdup().
This commit is contained in:
parent
42d5da633a
commit
2f7fbf01cf
1 changed files with 3 additions and 3 deletions
|
@ -95,9 +95,9 @@ void VFSEntrySettingsDialog::OnSelectDevPath(wxCommandEvent& event)
|
||||||
|
|
||||||
void VFSEntrySettingsDialog::OnOk(wxCommandEvent& event)
|
void VFSEntrySettingsDialog::OnOk(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
m_entry.device_path = strdup( m_tctrl_dev_path->GetValue().c_str());
|
m_entry.device_path = m_tctrl_dev_path->GetValue().ToStdString();
|
||||||
m_entry.path = strdup(m_tctrl_path->GetValue().c_str());
|
m_entry.path = m_tctrl_path->GetValue().ToStdString();
|
||||||
m_entry.mount = strdup(m_tctrl_mount->GetValue().c_str());
|
m_entry.mount = m_tctrl_mount->GetValue().ToStdString();
|
||||||
m_entry.device = (vfsDeviceType)m_ch_type->GetSelection();
|
m_entry.device = (vfsDeviceType)m_ch_type->GetSelection();
|
||||||
|
|
||||||
EndModal(wxID_OK);
|
EndModal(wxID_OK);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue