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

Unified Diff: Source/core/layout/LayoutQuote.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/LayoutProgress.cpp ('k') | Source/core/layout/LayoutReplaced.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutQuote.cpp
diff --git a/Source/core/layout/LayoutQuote.cpp b/Source/core/layout/LayoutQuote.cpp
index a5d24ea8306b2d70dcb68c9c14161a4a4d529afe..259ce9c891dadfdf607b62a9c2ab1d4fc70223fa 100644
--- a/Source/core/layout/LayoutQuote.cpp
+++ b/Source/core/layout/LayoutQuote.cpp
@@ -32,7 +32,7 @@
namespace blink {
LayoutQuote::LayoutQuote(Document* node, QuoteType quote)
- : LayoutInline(0)
+ : LayoutInline(nullptr)
, m_type(quote)
, m_depth(0)
, m_next(nullptr)
@@ -232,7 +232,7 @@ Language languages[] = {
const QuotesData* quotesDataForLanguage(const AtomicString& lang)
{
if (lang.isNull())
- return 0;
+ return nullptr;
// This could be just a hash table, but doing that adds 200k to LayoutQuote.o
Language* languagesEnd = languages + WTF_ARRAY_LENGTH(languages);
@@ -240,7 +240,7 @@ const QuotesData* quotesDataForLanguage(const AtomicString& lang)
Language key = { lowercaseLang.data(), 0, 0, 0, 0, 0 };
Language* match = std::lower_bound(languages, languagesEnd, key);
if (match == languagesEnd || strcmp(match->lang, key.lang))
- return 0;
+ return nullptr;
if (!match->data)
match->data = QuotesData::create(match->open1, match->close1, match->open2, match->close2).leakRef();
« no previous file with comments | « Source/core/layout/LayoutProgress.cpp ('k') | Source/core/layout/LayoutReplaced.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698