mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 14:21:16 +00:00
Get rid of the component in the C++ ComponentWindow::run
This commit is contained in:
parent
01b8605259
commit
3fce3e6f1b
3 changed files with 3 additions and 3 deletions
|
@ -84,8 +84,7 @@ public:
|
|||
ComponentWindow(ComponentWindow &&) = delete;
|
||||
ComponentWindow &operator=(const ComponentWindow &) = delete;
|
||||
|
||||
template<typename Component>
|
||||
void run(const Component *c) const
|
||||
void run() const
|
||||
{
|
||||
sixtyfps_component_window_run(&inner);
|
||||
}
|
||||
|
|
|
@ -200,3 +200,4 @@ private:
|
|||
};
|
||||
|
||||
} // namespace sixtyfps
|
||||
|
||||
|
|
|
@ -858,7 +858,7 @@ fn generate_component(
|
|||
Declaration::Function(Function {
|
||||
name: "run".into(),
|
||||
signature: "() const".into(),
|
||||
statements: Some(vec!["window.run(this);".into()]),
|
||||
statements: Some(vec!["window.run();".into()]),
|
||||
..Default::default()
|
||||
}),
|
||||
));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue