mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-21 14:02:57 +02:00
Define and use wxArrayStringEx...
reducing verbosity where there were repeated calls of Add(), and defining move construction and assignment for efficient returns from functions
This commit is contained in:
14
src/Snap.cpp
14
src/Snap.cpp
@@ -353,15 +353,13 @@ SnapResults SnapManager::Snap
|
||||
return results;
|
||||
}
|
||||
|
||||
/* static */ wxArrayString SnapManager::GetSnapLabels()
|
||||
/* static */ wxArrayStringEx SnapManager::GetSnapLabels()
|
||||
{
|
||||
wxArrayString labels;
|
||||
|
||||
labels.Add(_("Off"));
|
||||
labels.Add(_("Nearest"));
|
||||
labels.Add(_("Prior"));
|
||||
|
||||
return labels;
|
||||
return wxArrayStringEx{
|
||||
_("Off") ,
|
||||
_("Nearest") ,
|
||||
_("Prior") ,
|
||||
};
|
||||
}
|
||||
|
||||
#include "AColor.h"
|
||||
|
Reference in New Issue
Block a user