aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkTDArray.h
diff options
context:
space:
mode:
authorGravatar fmalita <fmalita@chromium.org>2015-02-13 08:55:24 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-13 08:55:24 -0800
commitf89f60f6972569a41fa737c786d238559027fede (patch)
treea6ce0bd1abd3fc5873f65af5413325f903b42960 /include/core/SkTDArray.h
parent9a0808fd8e83128403285f391944850d908d7af0 (diff)
[SkSVGDevice] Full font family support
Use a family name iterator and list all names instead of just one returned by SkTypeface::getFamilyName(). R=reed@google.com,mtklein@google.com Review URL: https://codereview.chromium.org/923583002
Diffstat (limited to 'include/core/SkTDArray.h')
-rw-r--r--include/core/SkTDArray.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/core/SkTDArray.h b/include/core/SkTDArray.h
index 08478c7851..31a11c7f3e 100644
--- a/include/core/SkTDArray.h
+++ b/include/core/SkTDArray.h
@@ -218,7 +218,7 @@ public:
for (; iter < stop; iter++) {
if (*iter == elem) {
- return (int) (iter - fArray);
+ return SkToInt(iter - fArray);
}
}
return -1;