Skip to content

Commit

Permalink
JSON::clear() が const メンバ関数になっていたのを非 const に修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Reputeless committed Dec 30, 2023
1 parent 928d196 commit ec43f5a
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 @@ -529,7 +529,7 @@ namespace s3d
void push_back(const JSON& value);

/// @brief 所有しているデータを消去して空にします。
void clear() const;
void clear();

/// @brief 渡されたキーが指す要素を削除します。
/// @param [in] name キー
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 @@ -929,7 +929,7 @@ namespace s3d
m_detail->get().push_back(value.m_detail->get());
}

void JSON::clear() const
void JSON::clear()
{
if (not m_isValid)
{
Expand Down

0 comments on commit ec43f5a

Please sign in to comment.