diff options
Diffstat (limited to 'base/values.h')
-rw-r--r-- | base/values.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/base/values.h b/base/values.h index 49ac219..6fb3240 100644 --- a/base/values.h +++ b/base/values.h @@ -308,6 +308,11 @@ class BASE_API DictionaryValue : public Value { // replaced. void MergeDictionary(const DictionaryValue* dictionary); + // Swaps contents with the |other| dictionary. + void Swap(DictionaryValue* other) { + dictionary_.swap(other->dictionary_); + } + // This class provides an iterator for the keys in the dictionary. // It can't be used to modify the dictionary. // |