mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 15:23:48 +01:00
Remove needless uses of wxString::c_str() in wxString::Format...
... and similar wx "variadics," which all treat wxString smartly enough that you don't need this. Don't need c_str either to convert wxString to const wxChar * because wxString has a conversion operator that does the same.
This commit is contained in:
@@ -203,8 +203,8 @@ void MidiIOPrefs::OnHost(wxCommandEvent & WXUNUSED(e))
|
||||
if (itemAtIndex.IsSameAs(interf)) {
|
||||
wxString name = wxSafeConvertMB2WX(info->name);
|
||||
wxString device = wxString::Format(wxT("%s: %s"),
|
||||
interf.c_str(),
|
||||
name.c_str());
|
||||
interf,
|
||||
name);
|
||||
int index;
|
||||
|
||||
if (info->output) {
|
||||
@@ -263,16 +263,16 @@ bool MidiIOPrefs::Commit()
|
||||
if (info) {
|
||||
gPrefs->Write(wxT("/MidiIO/PlaybackDevice"),
|
||||
wxString::Format(wxT("%s: %s"),
|
||||
wxString(wxSafeConvertMB2WX(info->interf)).c_str(),
|
||||
wxString(wxSafeConvertMB2WX(info->name)).c_str()));
|
||||
wxString(wxSafeConvertMB2WX(info->interf)),
|
||||
wxString(wxSafeConvertMB2WX(info->name))));
|
||||
}
|
||||
#ifdef EXPERIMENTAL_MIDI_IN
|
||||
info = (const PmDeviceInfo *) mRecord->GetClientData(mRecord->GetSelection());
|
||||
if (info) {
|
||||
gPrefs->Write(wxT("/MidiIO/RecordingDevice"),
|
||||
wxString::Format(wxT("%s: %s"),
|
||||
wxString(wxSafeConvertMB2WX(info->interf)).c_str(),
|
||||
wxString(wxSafeConvertMB2WX(info->name)).c_str()));
|
||||
wxString(wxSafeConvertMB2WX(info->interf)),
|
||||
wxString(wxSafeConvertMB2WX(info->name))));
|
||||
}
|
||||
#endif
|
||||
return gPrefs->Flush();
|
||||
|
||||
Reference in New Issue
Block a user