From 04a635e884024b24e0c86c473a81891dc9566d54 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 15 May 2021 14:07:16 -0500 Subject: [PATCH] DolphinQt: fix Visual Studio warning about 'assignment within conditional expression' --- Source/Core/DolphinQt/QtUtils/FlowLayout.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/QtUtils/FlowLayout.cpp b/Source/Core/DolphinQt/QtUtils/FlowLayout.cpp index e986f2f382..c1e4fefe11 100644 --- a/Source/Core/DolphinQt/QtUtils/FlowLayout.cpp +++ b/Source/Core/DolphinQt/QtUtils/FlowLayout.cpp @@ -66,8 +66,7 @@ FlowLayout::FlowLayout(int margin, int h_spacing, int v_spacing) FlowLayout::~FlowLayout() { - QLayoutItem* item; - while ((item = takeAt(0))) + while (QLayoutItem* item = takeAt(0)) delete item; }