From 09e480f0c956a16751a535558b84431ea47cd38f Mon Sep 17 00:00:00 2001 From: crupest Date: Sun, 2 Sep 2018 16:25:47 +0800 Subject: ... --- CruUI/application.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CruUI/application.cpp') diff --git a/CruUI/application.cpp b/CruUI/application.cpp index 4fd2cf9f..3ee7817d 100644 --- a/CruUI/application.cpp +++ b/CruUI/application.cpp @@ -82,9 +82,9 @@ namespace cru { return false; } - void InvokeLater(const InvokeLaterAction& action) { + void InvokeLater(InvokeLaterAction&& action) { //copy the action to a safe place - auto p_action_copy = new InvokeLaterAction(action); + auto p_action_copy = new InvokeLaterAction(std::move(action)); PostMessage( nullptr, -- cgit v1.2.3