Skip to content

Commit

Permalink
JSON::JSON(JSON&&) 修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Reputeless committed Dec 30, 2023
1 parent ec43f5a commit 135b32a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Siv3D/include/Siv3D/JSON.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ namespace s3d
JSON(const JSON& other);

SIV3D_NODISCARD_CXX20
JSON(JSON&& other) noexcept;
JSON(JSON&& other);

SIV3D_NODISCARD_CXX20
JSON(const std::initializer_list<std::pair<String, JSON>>& list);
Expand Down
2 changes: 1 addition & 1 deletion Siv3D/src/Siv3D/JSON/SivJSON.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ namespace s3d
: m_detail{ std::make_shared<detail::JSONDetail>(*other.m_detail) }
, m_isValid{ other.m_isValid } {}

JSON::JSON(JSON&& other) noexcept
JSON::JSON(JSON&& other)
: m_detail{ std::exchange(other.m_detail, std::make_shared<detail::JSONDetail>()) }
, m_isValid{ std::exchange(other.m_isValid, false) } {}

Expand Down

0 comments on commit 135b32a

Please sign in to comment.