diff options
author | crupest <crupest@outlook.com> | 2018-09-02 16:25:47 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-02 16:25:47 +0800 |
commit | 09e480f0c956a16751a535558b84431ea47cd38f (patch) | |
tree | f98aa86d2b23970c7d03ea2463ea120d06838e17 /CruUI/application.cpp | |
parent | f3d62dec00748a306af658b87bffc54e4949a4f4 (diff) | |
download | cru-09e480f0c956a16751a535558b84431ea47cd38f.tar.gz cru-09e480f0c956a16751a535558b84431ea47cd38f.tar.bz2 cru-09e480f0c956a16751a535558b84431ea47cd38f.zip |
...
Diffstat (limited to 'CruUI/application.cpp')
-rw-r--r-- | CruUI/application.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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, |