mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-05 19:21:59 +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:
@@ -1331,9 +1331,9 @@ LabelStruct LabelStruct::Import(wxTextFile &file, int &index)
|
||||
void LabelStruct::Export(wxTextFile &file) const
|
||||
{
|
||||
file.AddLine(wxString::Format(wxT("%s\t%s\t%s"),
|
||||
Internat::ToString(getT0(), FLT_DIG).c_str(),
|
||||
Internat::ToString(getT1(), FLT_DIG).c_str(),
|
||||
title.c_str()
|
||||
Internat::ToString(getT0(), FLT_DIG),
|
||||
Internat::ToString(getT1(), FLT_DIG),
|
||||
title
|
||||
));
|
||||
|
||||
// Do we need more lines?
|
||||
@@ -1346,8 +1346,8 @@ void LabelStruct::Export(wxTextFile &file) const
|
||||
// Write a \ character at the start of a second line,
|
||||
// so that earlier versions of Audacity ignore it.
|
||||
file.AddLine(wxString::Format(wxT("\\\t%s\t%s"),
|
||||
Internat::ToString(f0, FLT_DIG).c_str(),
|
||||
Internat::ToString(f1, FLT_DIG).c_str()
|
||||
Internat::ToString(f0, FLT_DIG),
|
||||
Internat::ToString(f1, FLT_DIG)
|
||||
));
|
||||
|
||||
// Additional lines in future formats should also start with '\'.
|
||||
|
||||
Reference in New Issue
Block a user