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

Unified Diff: base/memory/scoped_ptr.h

Issue 23621021: (not for review yet) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months 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 | « no previous file | cc/trees/layer_tree_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/scoped_ptr.h
diff --git a/base/memory/scoped_ptr.h b/base/memory/scoped_ptr.h
index c1fed9ae459287323f806195c09fc8ad8fdc9d5e..6059d56a296fa884543e56a926e5119ec30899cd 100644
--- a/base/memory/scoped_ptr.h
+++ b/base/memory/scoped_ptr.h
@@ -99,6 +99,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/move.h"
+#include "base/logging.h"
#include "base/template_util.h"
namespace base {
@@ -373,6 +374,7 @@ class scoped_ptr {
return *impl_.get();
}
element_type* operator->() const {
+ CHECK(impl_.get() != NULL);
assert(impl_.get() != NULL);
return impl_.get();
}
« no previous file with comments | « no previous file | cc/trees/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698