UI element::post uses movable function
This commit is contained in:
parent
9cba2d1c16
commit
4641c5d7d2
2 changed files with 3 additions and 2 deletions
|
|
@ -8,6 +8,7 @@
|
|||
#include <psemek/async/event_loop.hpp>
|
||||
|
||||
#include <psemek/util/span.hpp>
|
||||
#include <psemek/util/function.hpp>
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
|
@ -53,7 +54,7 @@ namespace psemek::ui
|
|||
|
||||
virtual ~element() {}
|
||||
|
||||
virtual void post(std::function<void()> f);
|
||||
virtual void post(util::function<void()> f);
|
||||
virtual void post_reshape();
|
||||
|
||||
protected:
|
||||
|
|
|
|||
|
|
@ -79,7 +79,7 @@ namespace psemek::ui
|
|||
return merged_style_;
|
||||
}
|
||||
|
||||
void element::post(std::function<void()> f)
|
||||
void element::post(util::function<void()> f)
|
||||
{
|
||||
auto l = loop();
|
||||
if (l)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue