1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-21 14:02:57 +02: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

@@ -173,7 +173,7 @@ void CommandBuilder::BuildCommand(const wxString &cmdName,
splitAt = cmdParams.Find(wxT(' '))+1;
if (splitAt < 1)
{
splitAt = cmdParams.Len();
splitAt = cmdParams.length();
}
cmdParams = cmdParams.Mid(splitAt);
}

View File

@@ -304,7 +304,7 @@ private:
if (keyDown)
{
wxString chars = GetUnicodeString(temp);
for (size_t i = 0, cnt = chars.Length(); i < cnt; i++)
for (size_t i = 0, cnt = chars.length(); i < cnt; i++)
{
temp = event;
temp.SetEventType(wxEVT_CHAR);

View File

@@ -159,7 +159,7 @@ public:
if (!v.Convert(&val))
return false;
SetConverted(val);
for(size_t i=0; i != val.Len(); i++)
for(size_t i=0; i != val.length(); i++)
if( val[i] != '0' && val[i] != '1' && val[i] != 'x' && val[i] != 'X')
return false;
return true;