mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/graph][apps/sequence] In values controller, memoize the number of
columns to improve performance Change-Id: Ie3c545d0198a2f23575bd22fdbf56e9c6b8ff2b8
This commit is contained in:
@@ -84,7 +84,7 @@ Poincare::ExpressionLayout * Function::layout() {
|
||||
}
|
||||
|
||||
bool Function::isDefined() {
|
||||
return strlen(m_text) != 0;
|
||||
return m_text[0] != 0;
|
||||
}
|
||||
|
||||
bool Function::isActive() {
|
||||
@@ -96,7 +96,7 @@ void Function::setActive(bool active) {
|
||||
}
|
||||
|
||||
bool Function::isEmpty() {
|
||||
return strlen(m_text) == 0;
|
||||
return m_text[0] == 0;
|
||||
}
|
||||
|
||||
float Function::evaluateAtAbscissa(float x, Poincare::Context * context) const {
|
||||
|
||||
Reference in New Issue
Block a user