Fix the C++ build

Remove the Optional from the evaluation context passing for property
evaluation. Unfortunately there are nullptr uses left on the C++ side,
that need to be replaced with passing through.
This commit is contained in:
Simon Hausmann 2020-05-28 12:07:11 +02:00
parent 4f9c53879b
commit f2df9293a9
10 changed files with 42 additions and 50 deletions

View file

@ -10,12 +10,12 @@ int main() {
component.plus_clicked.set_handler([](auto...){
auto &counter = component.counter;
counter.set(counter.get() + 1);
counter.set(counter.get(nullptr) + 1);
});
component.minus_clicked.set_handler([](auto...){
auto &counter = component.counter;
counter.set(counter.get() - 1);
counter.set(counter.get(nullptr) - 1);
});
sixtyfps::run(&component);