summaryrefslogtreecommitdiffstats
path: root/base/supports_user_data.cc
diff options
context:
space:
mode:
authorrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-26 06:23:00 +0000
committerrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-26 06:23:00 +0000
commitcb932487f6e6f8768da2030662dcd91929f4df0b (patch)
tree4563fa67fbafbf8e979e0c69024637b5badd9ec2 /base/supports_user_data.cc
parent3f9bfdac19db30a0a424e21d254f869eafaeb4ac (diff)
downloadchromium_src-cb932487f6e6f8768da2030662dcd91929f4df0b.zip
chromium_src-cb932487f6e6f8768da2030662dcd91929f4df0b.tar.gz
chromium_src-cb932487f6e6f8768da2030662dcd91929f4df0b.tar.bz2
RefCounted types should not have public destructors, base/ edition
BUG=123295 TEST=it compiles Review URL: https://chromiumcodereview.appspot.com/10332269 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144130 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/supports_user_data.cc')
-rw-r--r--base/supports_user_data.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/base/supports_user_data.cc b/base/supports_user_data.cc
index 2253c86..4fe64bd 100644
--- a/base/supports_user_data.cc
+++ b/base/supports_user_data.cc
@@ -6,11 +6,7 @@
namespace base {
-SupportsUserData::SupportsUserData() {
-}
-
-SupportsUserData::~SupportsUserData() {
-}
+SupportsUserData::SupportsUserData() {}
SupportsUserData::Data* SupportsUserData::GetUserData(const void* key) const {
DataMap::const_iterator found = user_data_.find(key);
@@ -23,4 +19,6 @@ void SupportsUserData::SetUserData(const void* key, Data* data) {
user_data_[key] = linked_ptr<Data>(data);
}
+SupportsUserData::~SupportsUserData() {}
+
} // namespace base