Use a tab BReference as argument in Area::Set{Left, Top, Right, Bottom}.
Using a normal pointer is dangerous when creating a new tab directly in the method call because the tab gets deleted to early.
This commit is contained in:
@@ -56,10 +56,10 @@ public:
|
||||
XTab* Right() const;
|
||||
YTab* Top() const;
|
||||
YTab* Bottom() const;
|
||||
void SetLeft(XTab* left);
|
||||
void SetRight(XTab* right);
|
||||
void SetTop(YTab* top);
|
||||
void SetBottom(YTab* bottom);
|
||||
void SetLeft(BReference<XTab> left);
|
||||
void SetRight(BReference<XTab> right);
|
||||
void SetTop(BReference<YTab> top);
|
||||
void SetBottom(BReference<YTab> bottom);
|
||||
|
||||
Row* GetRow() const;
|
||||
Column* GetColumn() const;
|
||||
|
||||
Reference in New Issue
Block a user