mirror of
https://github.com/cookiengineer/audacity
synced 2026-02-16 15:57:52 +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:
@@ -48,18 +48,18 @@ static bool TranslationExists(wxArrayString &audacityPathList, wxString code)
|
||||
{
|
||||
wxArrayString results;
|
||||
wxGetApp().FindFilesInPathList(wxString::Format(wxT("%s/audacity.mo"),
|
||||
code.c_str()),
|
||||
code),
|
||||
audacityPathList,
|
||||
results);
|
||||
#if defined(__WXMAC__)
|
||||
wxGetApp().FindFilesInPathList(wxString::Format(wxT("%s.lproj/audacity.mo"),
|
||||
code.c_str()),
|
||||
code),
|
||||
audacityPathList,
|
||||
results);
|
||||
#endif
|
||||
|
||||
wxGetApp().FindFilesInPathList(wxString::Format(wxT("%s/LC_MESSAGES/audacity.mo"),
|
||||
code.c_str()),
|
||||
code),
|
||||
audacityPathList,
|
||||
results);
|
||||
|
||||
@@ -212,9 +212,9 @@ void GetLanguages(wxArrayString &langCodes, wxArrayString &langNames)
|
||||
tempHash[code] = name;
|
||||
|
||||
/* wxLogDebug(wxT("code=%s name=%s fullCode=%s name=%s -> %s"),
|
||||
code.c_str(), localLanguageName[code].c_str(),
|
||||
fullCode.c_str(), localLanguageName[fullCode].c_str(),
|
||||
name.c_str());*/
|
||||
code, localLanguageName[code],
|
||||
fullCode, localLanguageName[fullCode],
|
||||
name);*/
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user