mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/poincare] Replace CharLayouts with CodePointLayouts
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#include "list_controller.h"
|
||||
#include "app.h"
|
||||
#include <poincare/char_layout.h>
|
||||
#include <poincare/code_point_layout.h>
|
||||
#include <assert.h>
|
||||
|
||||
using namespace Shared;
|
||||
@@ -124,7 +124,7 @@ bool textRepresentsAnEquality(const char * text) {
|
||||
bool layoutRepresentsAnEquality(Poincare::Layout l) {
|
||||
Poincare::Layout match = l.recursivelyMatches(
|
||||
[](Poincare::Layout layout) {
|
||||
return layout.isChar() && static_cast<Poincare::CharLayout &>(layout).character() == '='; });
|
||||
return layout.isCodePoint() && static_cast<Poincare::CodePointLayout &>(layout).codePoint() == '='; });
|
||||
return !match.isUninitialized();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user