mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[poincare] Remove Tree constructors that use nullptr as parameter
This commit is contained in:
@@ -50,7 +50,7 @@ void ExpressionModel::setContent(const char * c) {
|
||||
// TODO: the previous expression and layout are going to be destroyed as soon as we call expression(). Should we optimize this?
|
||||
#if 0
|
||||
if (m_layoutRef.isDefined()) {
|
||||
m_layoutRef = LayoutRef(nullptr);
|
||||
m_layoutRef = LayoutRef();
|
||||
}
|
||||
if (m_expression != nullptr) {
|
||||
delete m_expression;
|
||||
@@ -67,7 +67,7 @@ void ExpressionModel::tidy() {
|
||||
|
||||
|
||||
if (m_layoutRef.isDefined()) {
|
||||
m_layoutRef = LayoutRef(nullptr);
|
||||
m_layoutRef = LayoutRef();
|
||||
}
|
||||
if (m_expression != nullptr) {
|
||||
delete m_expression;
|
||||
|
||||
Reference in New Issue
Block a user