Put some ownership on a vector.

This commit is contained in:
2025-04-18 16:09:46 -04:00
parent 12812814d4
commit b1854e8db8
3 changed files with 8 additions and 13 deletions

View File

@ -333,7 +333,7 @@ void Widget::queueResize (int ref, bool extremesChanged, bool fast)
if (layout) {
// If RESIZE_QUEUED is set, this widget is already in the list.
if (!resizeQueued ())
layout->queueResizeList->put (this);
layout->queueResizeList.push_back (this);
resizeFlag = RESIZE_QUEUED;
extremesFlag = EXTREMES_QUEUED;
@ -372,7 +372,7 @@ void Widget::queueResize (int ref, bool extremesChanged, bool fast)
for (widget2 = parent, child = this; widget2;
child = widget2, widget2 = widget2->parent) {
if (layout && !widget2->resizeQueued ())
layout->queueResizeList->put (widget2);
layout->queueResizeList.push_back (widget2);
DBG_OBJ_MSGF ("resize", 2, "setting %s and ALLOCATE_QUEUED for %p",
resizeFlag == RESIZE_QUEUED ?