fixed memory usage (#2380)

* fixed memory usage in ui_about_simple
* fixed memory usage in freqman_db
* fixed memory usage in tone_key
This commit is contained in:
Bernd Herzog
2024-11-22 09:54:34 +01:00
committed by GitHub
parent fc08d4ead9
commit b108d975c0
7 changed files with 42 additions and 24 deletions

View File

@@ -96,7 +96,7 @@ float tone_key_frequency(tone_index index) {
std::string tone_key_string(tone_index index) {
if (index < 0 || (unsigned)index >= tone_keys.size())
return std::string("");
return tone_keys[index].first;
return (std::string)tone_keys[index].first;
}
// Return string showing frequency only from specific table index