can't return false for a ptr (unless you're in gcc)
authorreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 19 Apr 2013 20:52:50 +0000 (20:52 +0000)
committerreed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 19 Apr 2013 20:52:50 +0000 (20:52 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@8782 2bbb7eff-a529-9590-31e7-b0007b416f81

src/ports/SkFontConfigInterface_direct.cpp

index b0a2e46..bba1cce 100644 (file)
@@ -479,12 +479,12 @@ SkDataTable* SkFontConfigInterfaceDirect::getFamilyNames() {
     FcPattern* pat = FcPatternCreate();
     FcObjectSet* os = FcObjectSetBuild (FC_FAMILY, (char *) 0);
     if (NULL == os) {
-        return false;
+        return NULL;
     }
     FcFontSet* fs = FcFontList(NULL, pat, os);
     if (NULL == fs) {
         FcObjectSetDestroy(os);
-        return false;
+        return NULL;
     }
 
     SkTDArray<const char*> names;