diff --git a/modules/juce_gui_basics/widgets/juce_ComboBox.h b/modules/juce_gui_basics/widgets/juce_ComboBox.h index 905da938ee..f6d67cb7dd 100644 --- a/modules/juce_gui_basics/widgets/juce_ComboBox.h +++ b/modules/juce_gui_basics/widgets/juce_ComboBox.h @@ -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 ¤tMenu; } + PopupMenu* getRootMenu() noexcept { return ¤tMenu; } + + /** Returns the PopupMenu object associated with the ComboBox. */ + const PopupMenu* getRootMenu() const noexcept { return ¤tMenu; } //============================================================================== /**