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

Unified Diff: Source/platform/Length.cpp

Issue 170603003: Use nullptr_t for RefPtr, PassRefPtr and RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final rebase Created 6 years, 10 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 | « Source/platform/JSONValues.cpp ('k') | Source/platform/PODRedBlackTree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/Length.cpp
diff --git a/Source/platform/Length.cpp b/Source/platform/Length.cpp
index c0e64b2876460a701b0f5c9ba8009255d884103c..ad8339822be7bb87c5c7d2ff18687b95b6f0603e 100644
--- a/Source/platform/Length.cpp
+++ b/Source/platform/Length.cpp
@@ -149,7 +149,7 @@ public:
CalculationValue* value = m_map.get(index);
if (value->hasOneRef()) {
// Force the CalculationValue destructor early to avoid a potential recursive call inside HashMap remove().
- m_map.set(index, 0);
+ m_map.set(index, nullptr);
m_map.remove(index);
} else {
value->deref();
« no previous file with comments | « Source/platform/JSONValues.cpp ('k') | Source/platform/PODRedBlackTree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698