From 4bb2f8320325cdedbce60dc551c78739ead9120a Mon Sep 17 00:00:00 2001 From: hogliux Date: Thu, 16 Nov 2017 11:58:43 +0000 Subject: [PATCH] FlexBox: Clarified some documentation on object life-times --- modules/juce_gui_basics/layout/juce_FlexItem.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/layout/juce_FlexItem.h b/modules/juce_gui_basics/layout/juce_FlexItem.h index 55b415e5c5..9a573e4378 100644 --- a/modules/juce_gui_basics/layout/juce_FlexItem.h +++ b/modules/juce_gui_basics/layout/juce_FlexItem.h @@ -51,7 +51,9 @@ public: /** Creates an item with a given target component. */ FlexItem (Component& componentToControl) noexcept; - /** Creates an item that represents an embedded FlexBox. */ + /** Creates an item that represents an embedded FlexBox. This class will not + create a copy of the supplied flex box. You need to ensure that the + life-time of flexBoxToControl is longer than the FlexItem. */ FlexItem (FlexBox& flexBoxToControl) noexcept; //==============================================================================