[poincare] Remove Tree constructors that use nullptr as parameter

This commit is contained in:
Léa Saviot
2018-08-14 14:58:47 +02:00
parent 423dfa0654
commit 5d9e69dedc
29 changed files with 75 additions and 89 deletions

View File

@@ -159,7 +159,7 @@ void VariableBoxController::ContentViewController::willDisplayCellForIndex(Highl
PrintFloat::convertFloatToText<float>(matrixEvaluation.numberOfColumns(), buffer+numberOfChars, PrintFloat::bufferSizeForFloatsWithPrecision(2), 2, Preferences::PrintFloatMode::Decimal);
myCell->setSubtitle(buffer);
} else {
myCell->setLayoutRef(LayoutRef(nullptr));
myCell->setLayoutRef(LayoutRef());
myCell->setSubtitle(I18n::translate(I18n::Message::Empty));
}
}
@@ -261,10 +261,10 @@ LayoutRef VariableBoxController::ContentViewController::layoutRefForIndex(int in
}
#if LIST_VARIABLES
if (m_currentPage == Page::List) {
return nullptr;
return LayoutRef();
}
#endif
return nullptr;
return LayoutRef();
}
VariableBoxController::VariableBoxController(GlobalContext * context) :