Get rid of the component in the C++ ComponentWindow::run

This commit is contained in:
Olivier Goffart 2020-11-19 13:42:52 +01:00
parent 01b8605259
commit 3fce3e6f1b
3 changed files with 3 additions and 3 deletions

View file

@ -84,8 +84,7 @@ public:
ComponentWindow(ComponentWindow &&) = delete; ComponentWindow(ComponentWindow &&) = delete;
ComponentWindow &operator=(const ComponentWindow &) = delete; ComponentWindow &operator=(const ComponentWindow &) = delete;
template<typename Component> void run() const
void run(const Component *c) const
{ {
sixtyfps_component_window_run(&inner); sixtyfps_component_window_run(&inner);
} }

View file

@ -200,3 +200,4 @@ private:
}; };
} // namespace sixtyfps } // namespace sixtyfps

View file

@ -858,7 +858,7 @@ fn generate_component(
Declaration::Function(Function { Declaration::Function(Function {
name: "run".into(), name: "run".into(),
signature: "() const".into(), signature: "() const".into(),
statements: Some(vec!["window.run(this);".into()]), statements: Some(vec!["window.run();".into()]),
..Default::default() ..Default::default()
}), }),
)); ));