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

Unified Diff: Source/core/layout/TextRunConstructor.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
Index: Source/core/layout/TextRunConstructor.cpp
diff --git a/Source/core/layout/TextRunConstructor.cpp b/Source/core/layout/TextRunConstructor.cpp
index 47439797096005ab414143748706f43ef88b8f68..0dc8914bb2175d614df72a649bd1ce14fcb648bb 100644
--- a/Source/core/layout/TextRunConstructor.cpp
+++ b/Source/core/layout/TextRunConstructor.cpp
@@ -95,7 +95,7 @@ TextRun constructTextRun(LayoutObject* context, const Font& font, const String&
{
unsigned length = string.length();
if (!length)
- return constructTextRunInternal(context, font, static_cast<const LChar*>(0), length, style, direction, flags);
+ return constructTextRunInternal(context, font, static_cast<const LChar*>(nullptr), length, style, direction, flags);
if (string.is8Bit())
return constructTextRunInternal(context, font, string.characters8(), length, style, direction, flags);
return constructTextRunInternal(context, font, string.characters16(), length, style, direction, flags);
« no previous file with comments | « Source/core/layout/TextAutosizer.cpp ('k') | Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698