Reduce heap-allocations on possible hot-paths.

This commit is contained in:
Martín Lucas Golini
2026-09-06 21:02:58 -03:00
parent bd9360cf3e
commit 3d4aea6df4
12 changed files with 43 additions and 29 deletions

View File

@@ -5837,7 +5837,7 @@ UTEST( UIHTML, RonStonerDeferredImagesUpdateDocumentHeight ) {
ASSERT_TRUE( documentScene != nullptr );
UIWidget* body = nullptr;
std::vector<UIWidget*> images;
WidgetQueryResult images;
for ( int i = 0; i < 300; ++i ) {
pump();
body = documentScene->getRoot()->findByType( UI_TYPE_HTML_BODY )->asType<UIWidget>();