diff --git a/src/controls/private/QskSGNodeUtility.h b/src/controls/private/QskSGNodeUtility.h index fbcfd256..a83de54f 100644 --- a/src/controls/private/QskSGNodeUtility.h +++ b/src/controls/private/QskSGNodeUtility.h @@ -26,8 +26,9 @@ namespace QskSGNode if constexpr ( mode == Recursive ) { + QSGNode* current = root; ( - [ current = root ]( QSGNode* const child ) mutable { + [ ¤t ]( QSGNode* const child ) mutable { current->appendChildNode( child ); current = child; }( new Children ),