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

Unified Diff: Source/core/layout/LayoutCounter.cpp

Issue 1162383003: C++11: Replace 0 with nullptr where applicable in layout code. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add one more file. Created 5 years, 6 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/core/layout/LayoutCounter.h ('k') | Source/core/layout/LayoutDeprecatedFlexibleBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutCounter.cpp
diff --git a/Source/core/layout/LayoutCounter.cpp b/Source/core/layout/LayoutCounter.cpp
index d9b9e4cfc2c62e26ab40b99e07462933e2d8973f..8ea4aa7e587c3e3a6d33d7fa6d934599b136f193 100644
--- a/Source/core/layout/LayoutCounter.cpp
+++ b/Source/core/layout/LayoutCounter.cpp
@@ -304,7 +304,7 @@ static CounterNode* makeCounterNode(LayoutObject& object, const AtomicString& id
bool isReset = false;
int value = 0;
if (!planCounter(object, identifier, isReset, value) && !alwaysCreateCounter)
- return 0;
+ return nullptr;
RefPtr<CounterNode> newParent = nullptr;
RefPtr<CounterNode> newPreviousSibling = nullptr;
@@ -347,8 +347,8 @@ static CounterNode* makeCounterNode(LayoutObject& object, const AtomicString& id
LayoutCounter::LayoutCounter(Document* node, const CounterContent& counter)
: LayoutText(node, StringImpl::empty())
, m_counter(counter)
- , m_counterNode(0)
- , m_nextForSameCounter(0)
+ , m_counterNode(nullptr)
+ , m_nextForSameCounter(nullptr)
{
view()->addLayoutCounter();
}
« no previous file with comments | « Source/core/layout/LayoutCounter.h ('k') | Source/core/layout/LayoutDeprecatedFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698