Fix static analysis issue 79/282179/1
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 28 Sep 2022 04:03:42 +0000 (04:03 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 28 Sep 2022 04:03:42 +0000 (04:03 +0000)
The following issue is fxied:
 - INEFFECTIVE_MOVE

Change-Id: I589684b5c398fc5b327bd76e111588130a7a6b49
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
test/unit_tests/test_query_db_handlers.cc

index 4c294b1..432bdb3 100644 (file)
@@ -301,8 +301,8 @@ TEST_F(ParserDBHandlerTest, QueryDBHandler_GetDataControlAppIdTest) {
   for (auto& it : provider_map) {
     query_args.emplace_back(std::make_pair(
         QUERY_INDEX_APPINFO_GET_DATACONTROL_APPID,
-        std::vector<std::optional<std::string>>{std::move(it.first)}));
-    expected_appids.emplace_back(std::move(it.second));
+        std::vector<std::optional<std::string>>{it.first}));
+    expected_appids.emplace_back(it.second);
   }
 
   QueryHandlerMock query_handler(0, 0);