Skip to content

Commit

Permalink
Update Siv3D/src/Siv3D/JSON/SivJSON.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Raclamusi <[email protected]>
  • Loading branch information
Reputeless and Raclamusi authored Dec 29, 2023
1 parent 8c4b879 commit 928d196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Siv3D/src/Siv3D/JSON/SivJSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ namespace s3d

JSON& JSON::operator =(JSON&& other) noexcept
{
m_detail = std::exchange(other.m_detail, std::make_shared<detail::JSONDetail>());
*m_detail = std::exchange(*other.m_detail, detail::JSONDetail{});
m_isValid = std::exchange(other.m_isValid, false);
return *this;
}
Expand Down

0 comments on commit 928d196

Please sign in to comment.