fix warning for uninitialized count
git-svn-id: http://skia.googlecode.com/svn/trunk@14095 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
parent
efadb4b63c
commit
43d6d80b49
@ -66,7 +66,8 @@ int SkFont::textToGlyphs(const void* text, size_t byteLength, SkTextEncoding enc
|
||||
|
||||
SkASSERT(text);
|
||||
|
||||
int count;
|
||||
int count = 0; // fix uninitialized warning (even though the switch is complete!)
|
||||
|
||||
switch (encoding) {
|
||||
case kUTF8_SkTextEncoding:
|
||||
count = SkUTF8_CountUnichars((const char*)text, byteLength);
|
||||
|
Loading…
Reference in New Issue
Block a user