summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChanggyu Choi <changyu.choi@samsung.com>2023-08-16 14:34:21 +0900
committerChanggyu Choi <changyu.choi@samsung.com>2023-08-16 14:34:21 +0900
commit9cb1f2c4fcab3b11e61510ded53869a9ee0819de (patch)
tree3263a7344ea63da0a0cdb3cfa07d608cf5a409aa
parent1dbb8b59858e7a374468e0afc3a5445877b2421a (diff)
downloadapplication-9cb1f2c4fcab3b11e61510ded53869a9ee0819de.tar.gz
application-9cb1f2c4fcab3b11e61510ded53869a9ee0819de.tar.bz2
application-9cb1f2c4fcab3b11e61510ded53869a9ee0819de.zip
Fix a static analysis issue
Removes a unnecessary copy. Change-Id: Ie7d60bdc04e525255f8ada3f58216d3cb9a9edcf Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
-rw-r--r--src/app_main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/app_main.cc b/src/app_main.cc
index f1c92da..62b0008 100644
--- a/src/app_main.cc
+++ b/src/app_main.cc
@@ -25,6 +25,7 @@
#include <list>
#include <memory>
#include <stdexcept>
+#include <utility>
#include "app_internal.h"
#include "common_private.hh"
@@ -184,7 +185,7 @@ API int ui_app_main(int argc, char** argv,
try {
__context = std::make_unique<UiAppContext>(*callback, user_data, hint);
for (auto i : __pending_app_events)
- __context->AddEvent(i);
+ __context->AddEvent(std::move(i));
__context->Run(argc, argv);
} catch (std::runtime_error& e) {