mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Use String instead of &'static str in Params
This may hurt performance in generic UIs a bit, but it will allow you to programatically generate custom Params implementations for repeated Parameters structs.
This commit is contained in:
@@ -177,7 +177,7 @@ where
|
||||
}
|
||||
|
||||
for param_id in param_ids {
|
||||
let param_ptr = param_map[param_id];
|
||||
let param_ptr = param_map[¶m_id];
|
||||
// SAFETY: We only borrow each item once, and the plugin framework statically asserted
|
||||
// that parameter indices are unique and this widget state cannot outlive this
|
||||
// function
|
||||
|
||||
Reference in New Issue
Block a user