1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-20 07:46:30 +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:
Paul Licameli
2017-10-09 01:03:14 -04:00
parent 0efbf6a190
commit 7fd78183d2
76 changed files with 500 additions and 504 deletions

View File

@@ -535,9 +535,9 @@ int TimerRecordDialog::RunWaitDialog()
// Second column
strMsg += wxString::Format(wxT("%s\n%s\n%s\n\n%s\n%s\n%s"),
GetDisplayDate(m_DateTime_Start).c_str(),
GetDisplayDate(m_DateTime_Start),
m_TimeSpan_Duration.Format(),
GetDisplayDate(m_DateTime_End).c_str(),
GetDisplayDate(m_DateTime_End),
(m_bAutoSaveEnabled ? _("Yes") : _("No")),
(m_bAutoExportEnabled ? _("Yes") : _("No")),
sPostAction);
@@ -755,7 +755,7 @@ wxString TimerRecordDialog::GetDisplayDate( wxDateTime & dt )
#endif
// Use default formatting
wxPrintf(wxT("%s\n"), dt.Format().c_str());
wxPrintf(wxT("%s\n"), dt.Format());
return dt.FormatDate() + wxT(" ") + dt.FormatTime();
}
@@ -1020,9 +1020,9 @@ ProgressResult TimerRecordDialog::WaitForStart()
// Second column
strMsg += wxString::Format(wxT("%s\n%s\n%s\n\n%s\n%s\n%s"),
GetDisplayDate(m_DateTime_Start).c_str(),
GetDisplayDate(m_DateTime_Start),
m_TimeSpan_Duration.Format(),
GetDisplayDate(m_DateTime_End).c_str(),
GetDisplayDate(m_DateTime_End),
(m_bAutoSaveEnabled ? _("Yes") : _("No")),
(m_bAutoExportEnabled ? _("Yes") : _("No")),
sPostAction);