1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 16:09:28 +02:00

std::once_flag should be static

This commit is contained in:
Paul Licameli 2020-09-05 11:59:46 -04:00
parent 55bf357b8e
commit 80cf77eb19

View File

@ -263,7 +263,7 @@ TrackPanel::TrackPanel(wxWindow * parent, wxWindowID id,
// Whenever activation swaps between projects, the track panel "captures"
// the keyboard, which means its sub-cells like Label tracks are given
// the chance to process keystrokes before CommandManager.
std::once_flag flag;
static std::once_flag flag;
std::call_once(flag, []{
wxTheApp->Bind(EVT_PROJECT_ACTIVATION,
[](wxCommandEvent &){