diff --git a/base/dictionary.h b/base/dictionary.h index d6c7f490f..28736d013 100644 --- a/base/dictionary.h +++ b/base/dictionary.h @@ -76,9 +76,10 @@ public: * Adds an unnamed value to the dictionary. * * @param value The value. + * @returns The key that was used to add the new item. */ template - void Add(const T& value) + string Add(const T& value) { Iterator it; string key; @@ -93,6 +94,7 @@ public: } while (it != m_Data.end()); Set(key, value); + return key; } bool Contains(const string& key) const;