1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-23 09:20:16 +01:00

More use of std:: style members of wxString...

... replacing:

Length => length
Len => length
This commit is contained in:
Paul Licameli
2019-03-06 14:53:39 -05:00
parent 2db49dc1f0
commit c68e336247
38 changed files with 100 additions and 100 deletions

View File

@@ -163,7 +163,7 @@ wxString Internat::ToDisplayString(double numberToConvert,
if (result.Find(decSep) != -1)
{
// Strip trailing zeros, but leave one, and decimal separator.
int pos = result.Length() - 1;
int pos = result.length() - 1;
while ((pos > 1) &&
(result.GetChar(pos) == wxT('0')) &&
(result.GetChar(pos - 1) != decSep))
@@ -290,8 +290,8 @@ bool Internat::SanitiseFilename(wxString &name, const wxString &sub)
wxString Internat::StripAccelerators(const wxString &s)
{
wxString result;
result.reserve(s.Length());
for(size_t i = 0; i < s.Length(); i++) {
result.reserve(s.length());
for(size_t i = 0; i < s.length(); i++) {
if (s[i] == '\t')
break;
if (s[i] != '&' && s[i] != '.')