File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
packages/webview_flutter_lwe/tizen/src Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 99MessageDispatcher::MessageDispatcher () { ecore_init (); }
1010MessageDispatcher::~MessageDispatcher () { ecore_shutdown (); }
1111
12- void MessageDispatcher::dispatchTaskOnMainThread (std::function<void ()> fn) {
12+ void MessageDispatcher::dispatchTaskOnMainThread (std::function<void ()>&& fn) {
1313 ecore_main_loop_thread_safe_call_sync (
1414 [](void * data) -> void * {
1515 auto fn = static_cast <std::function<void ()>*>(data);
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ class MessageDispatcher {
1212 MessageDispatcher ();
1313 ~MessageDispatcher ();
1414
15- void dispatchTaskOnMainThread (std::function<void ()> fn);
15+ void dispatchTaskOnMainThread (std::function<void ()>&& fn);
1616};
1717
1818#endif // FLUTTER_PLUGIN_MESSAGE_DISPATCHER_H_
You can’t perform that action at this time.
0 commit comments