aboutsummaryrefslogtreecommitdiff
path: root/CruUI/application.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-09-02 16:25:47 +0800
committercrupest <crupest@outlook.com>2018-09-02 16:25:47 +0800
commit09e480f0c956a16751a535558b84431ea47cd38f (patch)
treef98aa86d2b23970c7d03ea2463ea120d06838e17 /CruUI/application.cpp
parentf3d62dec00748a306af658b87bffc54e4949a4f4 (diff)
downloadcru-09e480f0c956a16751a535558b84431ea47cd38f.tar.gz
cru-09e480f0c956a16751a535558b84431ea47cd38f.tar.bz2
cru-09e480f0c956a16751a535558b84431ea47cd38f.zip
...
Diffstat (limited to 'CruUI/application.cpp')
-rw-r--r--CruUI/application.cpp4
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,