aboutsummaryrefslogtreecommitdiffhomepage
path: root/samplecode/SamplePathText.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'samplecode/SamplePathText.cpp')
-rw-r--r--samplecode/SamplePathText.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/samplecode/SamplePathText.cpp b/samplecode/SamplePathText.cpp
index 30c8e63088..0d04b734b4 100644
--- a/samplecode/SamplePathText.cpp
+++ b/samplecode/SamplePathText.cpp
@@ -29,8 +29,8 @@ public:
for (int i = 0; i < 52; ++i) {
// I and l are rects on OS X ...
char c = "aQCDEFGH7JKLMNOPBRZTUVWXYSAbcdefghijk1mnopqrstuvwxyz"[i];
- SkGlyphID id = cache->unicharToGlyph(c);
- cache->getScalerContext()->getPath(SkPackedGlyphID(id), &glyphPaths[i]);
+ SkPackedGlyphID id(cache->unicharToGlyph(c));
+ sk_ignore_unused_variable(cache->getScalerContext()->getPath(id, &glyphPaths[i]));
}
for (int i = 0; i < kNumPaths; ++i) {