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

Unified Diff: Source/wtf/RawPtr.h

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed config.gni. Minor cleanups. Created 6 years, 5 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
Index: Source/wtf/RawPtr.h
diff --git a/Source/wtf/RawPtr.h b/Source/wtf/RawPtr.h
index f37ffd5aa48b3a2f254c7e69cc91ff945acf1b05..252756b9f4a07fbc27b50c8017451cd3e7c5279a 100644
--- a/Source/wtf/RawPtr.h
+++ b/Source/wtf/RawPtr.h
@@ -52,7 +52,7 @@ class RawPtr {
public:
RawPtr()
{
-#ifndef NDEBUG
+#if ENABLE(ASSERT)
m_ptr = reinterpret_cast<T*>(rawPtrZapValue);
#endif
}

Powered by Google App Engine
This is Rietveld 408576698