summaryrefslogtreecommitdiffstats
path: root/base/memory
diff options
context:
space:
mode:
authorhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 10:52:11 +0000
committerhans@chromium.org <hans@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-15 10:52:11 +0000
commitf3c697c5e5bc6bf15f6e8846f189b46dfc1e12c5 (patch)
tree1d7a6fc34e066dcbf9d2bc01af2244f72cbd78a7 /base/memory
parentd443be6fdfe17ca4f3ff1843ded362ff0cd01096 (diff)
downloadchromium_src-f3c697c5e5bc6bf15f6e8846f189b46dfc1e12c5.zip
chromium_src-f3c697c5e5bc6bf15f6e8846f189b46dfc1e12c5.tar.gz
chromium_src-f3c697c5e5bc6bf15f6e8846f189b46dfc1e12c5.tar.bz2
Add missing, and remove unnecessary, 'explicit' from constructors. (base/)
The style guide says that constructors which can be called with one argument should be explicit. For constructors which cannot be called with exactly one argument, there is no reason to mark them explicit. BUG=163357 Review URL: https://chromiumcodereview.appspot.com/11779022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176881 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/memory')
-rw-r--r--base/memory/ref_counted_memory.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/memory/ref_counted_memory.h b/base/memory/ref_counted_memory.h
index b99871b..fd5e8a0 100644
--- a/base/memory/ref_counted_memory.h
+++ b/base/memory/ref_counted_memory.h
@@ -65,7 +65,7 @@ class BASE_EXPORT RefCountedBytes : public RefCountedMemory {
RefCountedBytes();
// Constructs a RefCountedBytes object by _copying_ from |initializer|.
- RefCountedBytes(const std::vector<unsigned char>& initializer);
+ explicit RefCountedBytes(const std::vector<unsigned char>& initializer);
// Constructs a RefCountedBytes object by performing a swap. (To non
// destructively build a RefCountedBytes, use the constructor that takes a