diff options
-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]); } |