aggregate TMap into Dictionary instead of deriving from it

This commit is contained in:
Alexander Kromm 2020-02-06 21:20:33 +07:00 committed by Christoph Oelckers
commit b038c168c6
3 changed files with 15 additions and 9 deletions

View file

@ -2165,7 +2165,7 @@ template<> FSerializer &Serialize(FSerializer &arc, const char *key, FFont *&fon
FString DictionaryToString(const Dictionary &dict)
{
Dictionary::ConstPair *pair;
Dictionary::ConstIterator i { dict };
Dictionary::ConstIterator i { dict.Map };
rapidjson::StringBuffer buffer;
rapidjson::Writer<rapidjson::StringBuffer> writer(buffer);
@ -2214,7 +2214,7 @@ Dictionary *DictionaryFromString(const FString &string)
return dict;
}
dict->Insert(i->name.GetString(), i->value.GetString());
dict->Map.Insert(i->name.GetString(), i->value.GetString());
}
return dict;