mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-31 15:47:26 +00:00
Re-run clang-format with version 18
This commit is contained in:
parent
355a8ab62b
commit
650f19a33c
10 changed files with 70 additions and 135 deletions
|
@ -29,9 +29,9 @@ struct Timer
|
|||
template<std::invocable F>
|
||||
Timer(std::chrono::milliseconds interval, F callback)
|
||||
: id(cbindgen_private::slint_timer_start(
|
||||
0, TimerMode::Repeated, interval.count(),
|
||||
[](void *data) { (*reinterpret_cast<F *>(data))(); }, new F(std::move(callback)),
|
||||
[](void *data) { delete reinterpret_cast<F *>(data); }))
|
||||
0, TimerMode::Repeated, interval.count(),
|
||||
[](void *data) { (*reinterpret_cast<F *>(data))(); }, new F(std::move(callback)),
|
||||
[](void *data) { delete reinterpret_cast<F *>(data); }))
|
||||
{
|
||||
}
|
||||
Timer(const Timer &) = delete;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue