aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-14 19:03:46 +0000
committerGravatar humper@google.com <humper@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-01-14 19:03:46 +0000
commit61a972f11f60a84ec0faadd6c33f77e690317a98 (patch)
tree39101ceecbbeea61ac7f7d44fabc4a59d643b976
parent7f5350346aa69447d59ef976011746fd3fe6904e (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.h2
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]);
}