mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/poincare] use Symbol::k_ans constexpr char *
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "expression_field.h"
|
||||
#include <poincare/symbol.h>
|
||||
|
||||
namespace Calculation {
|
||||
|
||||
@@ -7,7 +8,7 @@ bool ExpressionField::handleEvent(Ion::Events::Event event) {
|
||||
return false;
|
||||
}
|
||||
if (event == Ion::Events::Ans) {
|
||||
handleEventWithText("ans");
|
||||
handleEventWithText(Poincare::Symbol::k_ans);
|
||||
return true;
|
||||
}
|
||||
if (isEditing() && isEmpty() &&
|
||||
@@ -17,7 +18,7 @@ bool ExpressionField::handleEvent(Ion::Events::Event event) {
|
||||
event == Ion::Events::Square ||
|
||||
event == Ion::Events::Division ||
|
||||
event == Ion::Events::Sto)) {
|
||||
handleEventWithText("ans");
|
||||
handleEventWithText(Poincare::Symbol::k_ans);
|
||||
}
|
||||
return(::ExpressionField::handleEvent(event));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user