[poincare] Node->isDefined becomes !Node->isUninitialized

This commit is contained in:
Léa Saviot
2018-08-14 16:40:12 +02:00
parent a3d09bde1c
commit 71c807b565
35 changed files with 113 additions and 118 deletions

View File

@@ -147,7 +147,7 @@ void VariableBoxController::ContentViewController::willDisplayCellForIndex(Highl
return;
}
myCell->displayExpression(true);
if (evaluation.isDefined()) {
if (!evaluation.isUninitialized()) {
/* TODO: implement list contexts */
// TODO: handle matrix and scalar!
LayoutRef layoutR = layoutRefForIndex(index);
@@ -169,7 +169,7 @@ KDCoordinate VariableBoxController::ContentViewController::rowHeight(int index)
return Metric::ToolboxRowHeight;
}
LayoutRef layoutR = layoutRefForIndex(index);
if (layoutR.isDefined()) {
if (!layoutR.isUninitialized()) {
return layoutR.layoutSize().height()+k_leafMargin;
}
return Metric::ToolboxRowHeight;