diff options
author | 2013-01-14 19:03:46 +0000 | |
---|---|---|
committer | 2013-01-14 19:03:46 +0000 | |
commit | 61a972f11f60a84ec0faadd6c33f77e690317a98 (patch) | |
tree | 39101ceecbbeea61ac7f7d44fabc4a59d643b976 | |
parent | 7f5350346aa69447d59ef976011746fd3fe6904e (diff) |
fix gcc build
BUG=
Review URL: https://codereview.appspot.com/7095055
git-svn-id: http://skia.googlecode.com/svn/trunk@7160 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r-- | include/core/SkString.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkString.h b/include/core/SkString.h index 7ea3969082..00494022d2 100644 --- a/include/core/SkString.h +++ b/include/core/SkString.h @@ -31,7 +31,7 @@ bool SkStrEndsWith(const char string[], const char suffixChar); int SkStrStartsWithOneOf(const char string[], const char prefixes[]); static int SkStrFind(const char string[], const char substring[]) { - char *first = strstr(string, substring); + const char *first = strstr(string, substring); if (NULL == first) return -1; return first - &(string[0]); } |