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

Unified Diff: Source/core/layout/LayoutScrollbarPart.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/LayoutScrollbarPart.h ('k') | Source/core/layout/LayoutState.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutScrollbarPart.cpp
diff --git a/Source/core/layout/LayoutScrollbarPart.cpp b/Source/core/layout/LayoutScrollbarPart.cpp
index f56f0521fcc1f84c44a243a914add9cf266808d9..1e11903f3bdcccffb630e8d2f04f53e7752bc587 100644
--- a/Source/core/layout/LayoutScrollbarPart.cpp
+++ b/Source/core/layout/LayoutScrollbarPart.cpp
@@ -35,7 +35,7 @@
namespace blink {
LayoutScrollbarPart::LayoutScrollbarPart(LayoutScrollbar* scrollbar, ScrollbarPart part)
- : LayoutBlock(0)
+ : LayoutBlock(nullptr)
, m_scrollbar(scrollbar)
, m_part(part)
{
@@ -200,9 +200,7 @@ void LayoutScrollbarPart::imageChanged(WrappedImagePtr image, const IntRect* rec
LayoutObject* LayoutScrollbarPart::layoutObjectOwningScrollbar() const
{
- if (!m_scrollbar)
- return 0;
- return m_scrollbar->owningLayoutObject();
+ return (!m_scrollbar) ? nullptr : m_scrollbar->owningLayoutObject();
}
}
« no previous file with comments | « Source/core/layout/LayoutScrollbarPart.h ('k') | Source/core/layout/LayoutState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698