Skip to content

Commit

Permalink
[共通] fix #1192
Browse files Browse the repository at this point in the history
  • Loading branch information
Reputeless committed Feb 2, 2024
1 parent e786b24 commit 01befb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Siv3D/src/Siv3D/JSON/SivJSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,14 +539,14 @@ namespace s3d

JSON& JSON::operator =(const JSON& other)
{
m_detail = std::make_shared<detail::JSONDetail>(*other.m_detail);
m_detail->get() = other.m_detail->get();
m_isValid = other.m_isValid;
return *this;
}

JSON& JSON::operator =(JSON&& other) noexcept
{
*m_detail = std::exchange(*other.m_detail, detail::JSONDetail{});
m_detail->get() = std::move(other.m_detail->get());
m_isValid = std::exchange(other.m_isValid, true);
return *this;
}
Expand Down

0 comments on commit 01befb3

Please sign in to comment.