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().
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user