diff --git a/modules/juce_gui_basics/widgets/juce_ListBox.h b/modules/juce_gui_basics/widgets/juce_ListBox.h index 2178e38f4e..7d7c508dc6 100644 --- a/modules/juce_gui_basics/widgets/juce_ListBox.h +++ b/modules/juce_gui_basics/widgets/juce_ListBox.h @@ -64,7 +64,9 @@ public: This method will be called whenever a custom component might need to be updated - e.g. when the table is changed, or TableListBox::updateContent() is called. - If you don't need a custom component for the specified row, then return 0. + If you don't need a custom component for the specified row, then return nullptr. + (Bear in mind that even if you're not creating a new component, you may still need to + delete existingComponentToUpdate if it's non-null). If you do want a custom component, and the existingComponentToUpdate is null, then this method must create a suitable new component and return it. diff --git a/modules/juce_gui_basics/widgets/juce_TableListBox.h b/modules/juce_gui_basics/widgets/juce_TableListBox.h index 59d4375010..19785a921b 100644 --- a/modules/juce_gui_basics/widgets/juce_TableListBox.h +++ b/modules/juce_gui_basics/widgets/juce_TableListBox.h @@ -86,7 +86,9 @@ public: This method will be called whenever a custom component might need to be updated - e.g. when the table is changed, or TableListBox::updateContent() is called. - If you don't need a custom component for the specified cell, then return 0. + If you don't need a custom component for the specified cell, then return nullptr. + (Bear in mind that even if you're not creating a new component, you may still need to + delete existingComponentToUpdate if it's non-null). If you do want a custom component, and the existingComponentToUpdate is null, then this method must create a new component suitable for the cell, and return it.