From 9cb1f2c4fcab3b11e61510ded53869a9ee0819de Mon Sep 17 00:00:00 2001 From: Changgyu Choi Date: Wed, 16 Aug 2023 14:34:21 +0900 Subject: [PATCH] Fix a static analysis issue Removes a unnecessary copy. Change-Id: Ie7d60bdc04e525255f8ada3f58216d3cb9a9edcf Signed-off-by: Changgyu Choi --- src/app_main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 #include #include +#include #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(*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) { -- 2.7.4