Skip to content

Commit

Permalink
forward
Browse files Browse the repository at this point in the history
  • Loading branch information
appgurueu committed Aug 29, 2024
1 parent aed59bb commit 7a9b58b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
4 changes: 2 additions & 2 deletions irr/include/SSkinMeshBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ struct SSkinMeshBuffer : public IMeshBuffer
SSkinMeshBuffer(std::vector<video::S3DVertex> &&vertices, std::vector<u16> &&indices) :
SSkinMeshBuffer()
{
Vertices_Standard = vertices;
Indices = indices;
Vertices_Standard = std::forward(vertices);
Indices = std::forward(indices);
}

//! Get Material of this buffer.
Expand Down
4 changes: 2 additions & 2 deletions irr/include/irrArray.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class array
{
}

//! Move constructor
array(std::vector<T> &&data) : m_data(data), is_sorted(false) {}
array(std::vector<T> &&data) :
m_data(std::forward(data)), is_sorted(false) {}

//! Reallocates the array, make it bigger or smaller.
/** \param new_size New size of array.
Expand Down
6 changes: 1 addition & 5 deletions irr/include/irrString.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 <class B>
Expand Down

0 comments on commit 7a9b58b

Please sign in to comment.