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:25:16 +0300
committerJeroen Bakker <jeroen@blender.org>2022-01-03 12:25:16 +0300
commit2e00d909381ece613abda5cdee998291b48d613b (patch)
treec353083e5522c2282a1f4a14befc173ca8d4285a /source/blender/blenlib/intern
parente2fdc6226a9f58afe1024b832989ede2c211124e (diff)
Cleanup: Renamed to_object_value to to_dictionary_value.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r--source/blender/blenlib/intern/serialize.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/intern/serialize.cc b/source/blender/blenlib/intern/serialize.cc
index 03d08bd20c6..4e7203efe9b 100644
--- a/source/blender/blenlib/intern/serialize.cc
+++ b/source/blender/blenlib/intern/serialize.cc
@@ -44,7 +44,7 @@ const ArrayValue *Value::as_array_value() const
return static_cast<const ArrayValue *>(this);
}
-const DictionaryValue *Value::as_object_value() const
+const DictionaryValue *Value::as_dictionary_value() const
{
if (type_ != eValueType::Dictionary) {
return nullptr;
@@ -99,7 +99,7 @@ static void convert_to_json(nlohmann::ordered_json &j, const Value &value)
}
case eValueType::Dictionary: {
- const DictionaryValue &object = *value.as_object_value();
+ const DictionaryValue &object = *value.as_dictionary_value();
convert_to_json(j, object);
break;
}