| 412 | */ |
| 413 | template <typename T> |
| 414 | ui::MenuItem* createIndexPtrSubmenuItem(std::string text, std::vector<std::string> labels, T* ptr) { |
| 415 | return createIndexSubmenuItem(text, labels, |
| 416 | [=]() { |
| 417 | return ptr ? *ptr : 0; |
| 418 | }, |
| 419 | [=](size_t index) { |
| 420 | if (ptr) |
| 421 | *ptr = T(index); |
| 422 | } |
| 423 | ); |
| 424 | } |
| 425 | |
| 426 | |
| 427 | } // namespace rack |
no test coverage detected