Remove build waring [-Wpessimizing-move] (don't need to std::move at return value) 42/301542/1
authorEunki Hong <eunkiki.hong@samsung.com>
Sun, 19 Nov 2023 15:38:58 +0000 (00:38 +0900)
committerEunki Hong <eunkiki.hong@samsung.com>
Sun, 19 Nov 2023 15:38:58 +0000 (00:38 +0900)
We don't need to use std::move for return value.

Change-Id: Ia2c1d156af039b38f5f6882f2f69537031eddb6b
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
dali-scene3d/public-api/loader/navigation-mesh-factory.cpp

index c54cb73..8fafe8a 100644 (file)
@@ -192,8 +192,7 @@ std::unique_ptr<Algorithm::NavigationMesh> NavigationMeshFactory::CreateFromVert
               reinterpret_cast<uint8_t*>(meshFaces.data()),
               reinterpret_cast<uint8_t*>(meshFaces.data()) + (meshFaces.size() * sizeof(NavigationMesh::Face)));
 
-  auto retval = std::move(NavigationMeshFactory::CreateFromBuffer(navigationMeshBinary));
-  return retval;
+  return NavigationMeshFactory::CreateFromBuffer(navigationMeshBinary);
 }
 
 std::unique_ptr<Algorithm::NavigationMesh> NavigationMeshFactory::CreateFromVertexFaceList(const std::vector<Vector3>& vertices, const std::vector<Vector3>& normals, const std::vector<uint32_t>& faceIndices)