Fix coverity : Do not call move to const & type 77/318177/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 14 Jan 2025 03:17:20 +0000 (12:17 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Tue, 14 Jan 2025 03:17:20 +0000 (12:17 +0900)
Change-Id: I1dd3aa7fa372ac474503c3c09e21b77645d500b2
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
automated-tests/src/dali-toolkit/dali-toolkit-test-utils/test-graphics-command-buffer.h

index 147246f44e8001d97a347ddaeb9abc1e5894104f..991bf3f7945ce2226a40fdd46c168f3d4fd5a8f5 100644 (file)
@@ -2,7 +2,7 @@
 #define DALI_TEST_GRAPHICS_COMMAND_BUFFER_H
 
 /*
- * Copyright (c) 2024 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2025 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -763,14 +763,14 @@ public:
   {
     mCommands.emplace_back();
     mCommands.back().type                              = CommandType::BIND_TEXTURES;
-    mCommands.back().data.bindTextures.textureBindings = std::move(textureBindings);
+    mCommands.back().data.bindTextures.textureBindings = textureBindings;
     mCallStack.PushCall("BindTextures", "");
   }
 
   void BindSamplers(const std::vector<Graphics::SamplerBinding>& samplerBindings) override
   {
     mCommands.emplace_back();
-    mCommands.back().data.bindSamplers.samplerBindings = std::move(samplerBindings);
+    mCommands.back().data.bindSamplers.samplerBindings = samplerBindings;
     mCallStack.PushCall("BindSamplers", "");
   }