diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-01-03 12:25:16 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-01-03 12:25:16 +0300 |
commit | 2e00d909381ece613abda5cdee998291b48d613b (patch) | |
tree | c353083e5522c2282a1f4a14befc173ca8d4285a /source/blender/blenlib/BLI_serialize.hh | |
parent | e2fdc6226a9f58afe1024b832989ede2c211124e (diff) |
Cleanup: Renamed to_object_value to to_dictionary_value.
Diffstat (limited to 'source/blender/blenlib/BLI_serialize.hh')
-rw-r--r-- | source/blender/blenlib/BLI_serialize.hh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_serialize.hh b/source/blender/blenlib/BLI_serialize.hh index 11ac1c6605b..5945960c450 100644 --- a/source/blender/blenlib/BLI_serialize.hh +++ b/source/blender/blenlib/BLI_serialize.hh @@ -177,7 +177,7 @@ class Value { * Casts to an DictionaryValue. * Will return nullptr when it is a different type. */ - const DictionaryValue *as_object_value() const; + const DictionaryValue *as_dictionary_value() const; }; /** @@ -269,13 +269,14 @@ class ContainerValue : public Value { * The elements are stored as an key value pair. The value is a shared pointer so it can be shared * when using `DictionaryValue::create_lookup`. */ -using ObjectElementType = std::pair<std::string, std::shared_ptr<Value>>; +using DictionaryElementType = std::pair<std::string, std::shared_ptr<Value>>; /** * Object is a key-value container where the key must be a std::string. * Internally it is stored in a blender::Vector to ensure the order of keys. */ -class DictionaryValue : public ContainerValue<Vector<ObjectElementType>, eValueType::Dictionary> { +class DictionaryValue + : public ContainerValue<Vector<DictionaryElementType>, eValueType::Dictionary> { public: using LookupValue = std::shared_ptr<Value>; using Lookup = Map<std::string, LookupValue>; |