{
for (int i = 0; i != count(); ++i) {
GuiWorkArea * wa = dynamic_cast<GuiWorkArea *>(widget(i));
- LASSERT(wa, /**/);
+ LASSERT(wa, return 0);
if (&wa->bufferView().buffer() == &buffer)
return wa;
}
bool TabWorkArea::removeWorkArea(GuiWorkArea * work_area)
{
- LASSERT(work_area, /**/);
+ LASSERT(work_area, return false);
int index = indexOf(work_area);
if (index == -1)
return false;
else
// Hide tabbar if there's only one tab.
showBar(count() > 1);
- } else
+ } else {
lastWorkAreaRemoved();
+ }
return true;
}
if (i == -1)
return;
GuiWorkArea * wa = dynamic_cast<GuiWorkArea *>(widget(i));
- LASSERT(wa, /**/);
+ LASSERT(wa, return);
BufferView & bv = wa->bufferView();
bv.cursor().fixIfBroken();
bv.updateMetrics();