Alter assert that is causing Chromium compilation failure
authorrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 31 Jul 2013 00:00:56 +0000 (00:00 +0000)
committerrobertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Wed, 31 Jul 2013 00:00:56 +0000 (00:00 +0000)
../../third_party/skia/include/core/SkTypeface.h:303:19: error: implicit conversion turns string literal into bool: 'const char [14]' to 'bool' [-Werror,-Wstring-conversion]
        SkASSERT(!"unimplemented");
                 ~^~~~~~~~~~~~~~~

git-svn-id: http://skia.googlecode.com/svn/trunk@10447 2bbb7eff-a529-9590-31e7-b0007b416f81

include/core/SkTypeface.h

index fccbe1f62e6499603ff74b5fc26744b84caf438e..44abdd3b3a9196a80ed5efed808212ee18c5f74b 100644 (file)
@@ -300,7 +300,7 @@ protected:
 
     // TODO: make this pure-virtual when all ports have overridden it
     virtual SkTypeface* onRefMatchingStyle(Style styleBits) const {
-        SkASSERT(!"unimplemented");
+        SkASSERT(0);
         this->ref();
         return const_cast<SkTypeface*>(this);
     }