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

Unified Diff: Source/platform/fonts/skia/FontCacheSkia.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
Index: Source/platform/fonts/skia/FontCacheSkia.cpp
diff --git a/Source/platform/fonts/skia/FontCacheSkia.cpp b/Source/platform/fonts/skia/FontCacheSkia.cpp
index 9b9f9503c346263b1601d12163b24b1fbedb5c54..f8d4b1a40f401842f820b442169c495b73007516 100644
--- a/Source/platform/fonts/skia/FontCacheSkia.cpp
+++ b/Source/platform/fonts/skia/FontCacheSkia.cpp
@@ -55,7 +55,7 @@ PassRefPtr<SimpleFontData> FontCache::platformFallbackForCharacter(const FontDes
FontCache::SimpleFontFamily family;
FontCache::getFontFamilyForCharacter(c, locale.getLanguage(), &family);
if (family.name.isEmpty())
- return 0;
+ return nullptr;
AtomicString atomicFamily(family.name);
// Changes weight and/or italic of given FontDescription depends on
@@ -79,7 +79,7 @@ PassRefPtr<SimpleFontData> FontCache::platformFallbackForCharacter(const FontDes
FontPlatformData* substitutePlatformData = getFontPlatformData(description, atomicFamily);
if (!substitutePlatformData)
- return 0;
+ return nullptr;
FontPlatformData platformData = FontPlatformData(*substitutePlatformData);
platformData.setSyntheticBold(shouldSetSyntheticBold);
platformData.setSyntheticItalic(shouldSetSyntheticItalic);
« no previous file with comments | « Source/platform/fonts/opentype/OpenTypeSanitizer.cpp ('k') | Source/platform/fonts/skia/FontCacheSkiaWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698