mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-23 17:30:17 +01:00
More std:: style for wxString and wxArrayString...
... Replacing: Insert => insert RemoveAt => erase Remove => erase IsSameAs => operator == or operator != (but only when second argument was true or default)
This commit is contained in:
@@ -1877,7 +1877,7 @@ bool LabelTrack::OnKeyDown(SelectedRegion &newSel, wxKeyEvent & event)
|
||||
{
|
||||
// DELETE one letter
|
||||
if (mCurrentCursorPos > 0) {
|
||||
title.Remove(mCurrentCursorPos-1, 1);
|
||||
title.erase(mCurrentCursorPos-1, 1);
|
||||
mCurrentCursorPos--;
|
||||
}
|
||||
}
|
||||
@@ -1907,7 +1907,7 @@ bool LabelTrack::OnKeyDown(SelectedRegion &newSel, wxKeyEvent & event)
|
||||
{
|
||||
// DELETE one letter
|
||||
if (mCurrentCursorPos < len) {
|
||||
title.Remove(mCurrentCursorPos, 1);
|
||||
title.erase(mCurrentCursorPos, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user