diff options
author | Jeroen Bakker <jeroen@blender.org> | 2022-01-03 12:23:09 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2022-01-03 12:23:09 +0300 |
commit | e2fdc6226a9f58afe1024b832989ede2c211124e (patch) | |
tree | 698f60b2d3f81f4653bda3a351bb6dfcd456fb17 /source/blender/blenlib/BLI_serialize.hh | |
parent | ea8d749587ddf1108429f19eea89b9f0c2af3ee4 (diff) |
Cleanup: rename ValueType.Object to ValueType.Dictionary.
Diffstat (limited to 'source/blender/blenlib/BLI_serialize.hh')
-rw-r--r-- | source/blender/blenlib/BLI_serialize.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/BLI_serialize.hh b/source/blender/blenlib/BLI_serialize.hh index b1002b07fd3..11ac1c6605b 100644 --- a/source/blender/blenlib/BLI_serialize.hh +++ b/source/blender/blenlib/BLI_serialize.hh @@ -92,7 +92,7 @@ enum class eValueType { Null, Boolean, Double, - Object, + Dictionary, }; class Value; @@ -122,8 +122,8 @@ using ArrayValue = ContainerValue<Vector<std::shared_ptr<Value>>, eValueType::Ar * - `NullValue`: represents nothing (null pointer or optional). * - `BooleanValue`: contains a boolean (true/false). * - `DoubleValue`: contains a double precision floating point number. - * - `DictionaryValue`: represents an object (key value pairs where keys are strings and values can be - * of different types. + * - `DictionaryValue`: represents an object (key value pairs where keys are strings and values can + * be of different types. * */ class Value { @@ -275,7 +275,7 @@ using ObjectElementType = 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::Object> { +class DictionaryValue : public ContainerValue<Vector<ObjectElementType>, eValueType::Dictionary> { public: using LookupValue = std::shared_ptr<Value>; using Lookup = Map<std::string, LookupValue>; |