MCPcopy Create free account
hub / github.com/audacity/audacity / RefreshKeyInfo

Method RefreshKeyInfo

src/prefs/KeyConfigPrefs.cpp:359–365  ·  view source on GitHub ↗

RefreshKeyInfo is used to update mKeys vector only Introduced for efficiency purposes to avoid unnecessary usage of RefreshBinding

Source from the content-addressed store, hash-verified

357// RefreshKeyInfo is used to update mKeys vector only
358// Introduced for efficiency purposes to avoid unnecessary usage of RefreshBinding
359void KeyConfigPrefs::RefreshKeyInfo()
360{
361 mKeys.clear();
362
363 for (const auto & name : mNames)
364 mKeys.push_back(mManager->GetKeyFromName(name));
365}
366
367// Removes all shortcuts
368// Doesn't call RefreshBindings()

Callers

nothing calls this directly

Calls 3

GetKeyFromNameMethod · 0.80
clearMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected