Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9000)

Unified Diff: chrome/common/mru_cache.h

Issue 384103: This patch is the rest of the lint cleanup minus the other open issue. (Closed)
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/logging_chrome.h ('k') | chrome/common/net/dns.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/mru_cache.h
diff --git a/chrome/common/mru_cache.h b/chrome/common/mru_cache.h
index 9190d9d36efafc9d41b02835d4979d886a791140..b2643f82463c421de5d5b15d30a8f3d800e3937c 100644
--- a/chrome/common/mru_cache.h
+++ b/chrome/common/mru_cache.h
@@ -53,7 +53,7 @@ class MRUCacheBase {
// a new item is inserted. If the caller wants to manager this itself (for
// example, maybe it has special work to do when something is evicted), it
// can pass NO_AUTO_EVICT to not restrict the cache size.
- MRUCacheBase(size_type max_size) : max_size_(max_size) {
+ explicit MRUCacheBase(size_type max_size) : max_size_(max_size) {
}
virtual ~MRUCacheBase() {
@@ -205,7 +205,7 @@ class MRUCache : public MRUCacheBase<KeyType,
public:
// See MRUCacheBase, noting the possibility of using NO_AUTO_EVICT.
- MRUCache(typename ParentType::size_type max_size)
+ explicit MRUCache(typename ParentType::size_type max_size)
: ParentType(max_size) {
}
virtual ~MRUCache() {
@@ -239,7 +239,7 @@ class OwningMRUCache
public:
// See MRUCacheBase, noting the possibility of using NO_AUTO_EVICT.
- OwningMRUCache(typename ParentType::size_type max_size)
+ explicit OwningMRUCache(typename ParentType::size_type max_size)
: ParentType(max_size) {
}
virtual ~OwningMRUCache() {
« no previous file with comments | « chrome/common/logging_chrome.h ('k') | chrome/common/net/dns.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698