mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-05 08:33:53 +01:00
Oops, the once_flag must be static!
This commit is contained in:
@@ -90,7 +90,7 @@ ProjectSerializer::ProjectSerializer(size_t allocSize)
|
||||
mDict.SetBufSize(allocSize);
|
||||
mBuffer.SetBufSize(allocSize);
|
||||
|
||||
std::once_flag flag;
|
||||
static std::once_flag flag;
|
||||
std::call_once(flag, []{
|
||||
// Just once per run, store header information in the unique static
|
||||
// dictionary that will be written into each project that is saved.
|
||||
|
||||
Reference in New Issue
Block a user