Fix warning on Mac.
authorJohn Abd-El-Malek <jam@chromium.org>
Tue, 20 May 2014 17:29:41 +0000 (10:29 -0700)
committerJohn Abd-El-Malek <jam@chromium.org>
Tue, 20 May 2014 17:29:41 +0000 (10:29 -0700)
core/src/fpdfapi/fpdf_edit/fpdf_edit_doc.cpp

index 9157b96..e11d933 100644 (file)
@@ -567,7 +567,7 @@ void FX_GetCharWidth(CTFontRef font, UniChar start, UniChar end, int* width)
 {\r
     CGFloat size = CTFontGetSize(font);\r
     for (; start <= end; ++start) {\r
-        CGGlyph pGlyph = NULL;\r
+        CGGlyph pGlyph = 0;\r
         CFIndex count = 1;\r
         CTFontGetGlyphsForCharacters(font, &start, &pGlyph, count);\r
         CGSize advances;\r