Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Bakker <jeroen@blender.org>2022-01-03 12:23:09 +0300
committerJeroen Bakker <jeroen@blender.org>2022-01-03 12:23:09 +0300
commite2fdc6226a9f58afe1024b832989ede2c211124e (patch)
tree698f60b2d3f81f4653bda3a351bb6dfcd456fb17 /source/blender/blenlib/intern
parentea8d749587ddf1108429f19eea89b9f0c2af3ee4 (diff)
Cleanup: rename ValueType.Object to ValueType.Dictionary.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r--source/blender/blenlib/intern/serialize.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/serialize.cc b/source/blender/blenlib/intern/serialize.cc
index a17d7a189f6..03d08bd20c6 100644
--- a/source/blender/blenlib/intern/serialize.cc
+++ b/source/blender/blenlib/intern/serialize.cc
@@ -46,7 +46,7 @@ const ArrayValue *Value::as_array_value() const
const DictionaryValue *Value::as_object_value() const
{
- if (type_ != eValueType::Object) {
+ if (type_ != eValueType::Dictionary) {
return nullptr;
}
return static_cast<const DictionaryValue *>(this);
@@ -98,7 +98,7 @@ static void convert_to_json(nlohmann::ordered_json &j, const Value &value)
break;
}
- case eValueType::Object: {
+ case eValueType::Dictionary: {
const DictionaryValue &object = *value.as_object_value();
convert_to_json(j, object);
break;
@@ -133,7 +133,8 @@ static std::unique_ptr<ArrayValue> convert_from_json_to_array(const nlohmann::or
return array;
}
-static std::unique_ptr<DictionaryValue> convert_from_json_to_object(const nlohmann::ordered_json &j)
+static std::unique_ptr<DictionaryValue> convert_from_json_to_object(
+ const nlohmann::ordered_json &j)
{
std::unique_ptr<DictionaryValue> object = std::make_unique<DictionaryValue>();
DictionaryValue::Items &elements = object->elements();