1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-16 00:34:19 +00:00

ComboBox: Add const getter for root menu

This commit is contained in:
reuk 2020-06-10 16:56:23 +01:00
parent 336398893d
commit 37c2dbe547

View file

@ -272,7 +272,10 @@ public:
/** Returns the PopupMenu object associated with the ComboBox.
Can be useful for adding sub-menus to the ComboBox standard PopupMenu
*/
PopupMenu* getRootMenu() { return &currentMenu; }
PopupMenu* getRootMenu() noexcept { return &currentMenu; }
/** Returns the PopupMenu object associated with the ComboBox. */
const PopupMenu* getRootMenu() const noexcept { return &currentMenu; }
//==============================================================================
/**