From 0926395334d7118dc5cd5e03d8224a10f888ce05 Mon Sep 17 00:00:00 2001 From: Alex Wilson Date: Tue, 6 Sep 2011 19:51:20 +0000 Subject: [PATCH] Fix problem in LayoutTest1 under gcc4. For some reason, toggledView was being assigned to twice, while being passed to Add(). Under gcc4, the second call to Add(toggledView = new TestView(), ...) was passing in the original value of toggledView, not the new TestView, which caused a call to debugger(). --- src/tests/kits/interface/layout/LayoutTest1.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/kits/interface/layout/LayoutTest1.cpp b/src/tests/kits/interface/layout/LayoutTest1.cpp index d324117049..3627953aae 100644 --- a/src/tests/kits/interface/layout/LayoutTest1.cpp +++ b/src/tests/kits/interface/layout/LayoutTest1.cpp @@ -624,7 +624,7 @@ struct SplitterGroupLayoutTest1 : public Test { // row 3 .AddSplit(B_HORIZONTAL, B_USE_DEFAULT_SPACING, 3) .Add(new TestView(), 3) - .Add(toggledView = new TestView(), 2) + .Add(new TestView(), 2) .Add(new TestView(), 1) .End() // make the row uncollapsible