Skip to content

Commit ec43f5a

Browse files
committed
JSON::clear() が const メンバ関数になっていたのを非 const に修正
1 parent 928d196 commit ec43f5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Siv3D/include/Siv3D/JSON.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ namespace s3d
529529
void push_back(const JSON& value);
530530

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

534534
/// @brief 渡されたキーが指す要素を削除します。
535535
/// @param [in] name キー

Siv3D/src/Siv3D/JSON/SivJSON.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ namespace s3d
929929
m_detail->get().push_back(value.m_detail->get());
930930
}
931931

932-
void JSON::clear() const
932+
void JSON::clear()
933933
{
934934
if (not m_isValid)
935935
{

0 commit comments

Comments
 (0)