diff --git a/irr/include/SSkinMeshBuffer.h b/irr/include/SSkinMeshBuffer.h index 2f39922e7fe5b..5c5f49b8a67ac 100644 --- a/irr/include/SSkinMeshBuffer.h +++ b/irr/include/SSkinMeshBuffer.h @@ -28,8 +28,8 @@ struct SSkinMeshBuffer : public IMeshBuffer SSkinMeshBuffer(std::vector &&vertices, std::vector &&indices) : SSkinMeshBuffer() { - Vertices_Standard = vertices; - Indices = indices; + Vertices_Standard = std::forward(vertices); + Indices = std::forward(indices); } //! Get Material of this buffer. diff --git a/irr/include/irrArray.h b/irr/include/irrArray.h index 2deb356095ba6..1bb3a3bc6977e 100644 --- a/irr/include/irrArray.h +++ b/irr/include/irrArray.h @@ -45,8 +45,8 @@ class array { } - //! Move constructor - array(std::vector &&data) : m_data(data), is_sorted(false) {} + array(std::vector &&data) : + m_data(std::forward(data)), is_sorted(false) {} //! Reallocates the array, make it bigger or smaller. /** \param new_size New size of array. diff --git a/irr/include/irrString.h b/irr/include/irrString.h index 8669aec18d5c1..6b5ef7dce5db0 100644 --- a/irr/include/irrString.h +++ b/irr/include/irrString.h @@ -79,11 +79,7 @@ class string *this = other; } - //! Copy (from standard library string) constructor - string(const stl_type &str) : str(str) {} - - //! Move (from standard library string) constructor - string(stl_type &&str) : str(str) {} + string(stl_type &&str) : str(std::forward(str)) {} //! Constructor from other string types template