diff options
author | 2011-12-28 14:59:50 +0000 | |
---|---|---|
committer | 2011-12-28 14:59:50 +0000 | |
commit | 0c00f21fee3f5cfa3aa7e5d46ff94cb8cf340451 (patch) | |
tree | 2a6e633dbd4bcb8bb5cd308caaa667c8163dbf30 /src/ports/SkFontHost_android.cpp | |
parent | 6f6e8c39a7b07f8a916a60ad27f17bd13f3c89ad (diff) |
Add SkDEBUGFAIL to clean up use of SkASSERT(!"text");
catch a couple of latent SkASSERT("text") bugs.
http://codereview.appspot.com/5504090/
git-svn-id: http://skia.googlecode.com/svn/trunk@2926 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/ports/SkFontHost_android.cpp')
-rw-r--r-- | src/ports/SkFontHost_android.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ports/SkFontHost_android.cpp b/src/ports/SkFontHost_android.cpp index dce3b3c9d8..37c922c6c2 100644 --- a/src/ports/SkFontHost_android.cpp +++ b/src/ports/SkFontHost_android.cpp @@ -106,7 +106,7 @@ static SkTypeface* find_best_face(const FamilyRec* family, } } // should never get here, since the faces list should not be empty - SkASSERT(!"faces list is empty"); + SkDEBUGFAIL("faces list is empty"); return NULL; } @@ -179,7 +179,7 @@ static void detach_and_delete_family(FamilyRec* family) { prev = curr; curr = next; } - SkASSERT(!"Yikes, couldn't find family in our list to remove/delete"); + SkDEBUGFAIL("Yikes, couldn't find family in our list to remove/delete"); } static SkTypeface* find_typeface(const char name[], SkTypeface::Style style) { |