From a34cc0992e8735dbbec8447d24dbb5c31fc85700 Mon Sep 17 00:00:00 2001 From: "hans@chromium.org" <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> Date: Fri, 10 Aug 2012 12:45:35 +0000 Subject: Clean-up inline members of nested classes (base/) Due to a bug, the Clang-plugin style checker failed to warn about inline constructors, destructors, non-empty virtual methods, etc. for nested classes. The plugin has been fixed, and this patch is part of a clean-up of all the code that now causes the plugin to issue errors. BUG=139346 Review URL: https://chromiumcodereview.appspot.com/10825273 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151016 0039d316-1c4b-4281-b951-d872f2087c98 --- base/values.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'base/values.cc') diff --git a/base/values.cc b/base/values.cc index 1ccc9ec..c9b5eef 100644 --- a/base/values.cc +++ b/base/values.cc @@ -750,6 +750,18 @@ void DictionaryValue::Swap(DictionaryValue* other) { dictionary_.swap(other->dictionary_); } +DictionaryValue::key_iterator::key_iterator(ValueMap::const_iterator itr) { + itr_ = itr; +} + +DictionaryValue::key_iterator::key_iterator(const key_iterator& rhs) { + itr_ = rhs.itr_; +} + +DictionaryValue::Iterator::Iterator(const DictionaryValue& target) + : target_(target), + it_(target.dictionary_.begin()) {} + DictionaryValue* DictionaryValue::DeepCopy() const { DictionaryValue* result = new DictionaryValue; -- cgit v1.1