Index: src/core/SkScalerContext.cpp |
diff --git a/src/core/SkScalerContext.cpp b/src/core/SkScalerContext.cpp |
index 8cb416e9ae4c06b90add84f9b86a561cb24b44de..20413a7dd7f292cab3406cc7aa7e4a0e1025520f 100644 |
--- a/src/core/SkScalerContext.cpp |
+++ b/src/core/SkScalerContext.cpp |
@@ -167,8 +167,7 @@ void SkScalerContext::getMetrics(SkGlyph* glyph) { |
} |
} else { |
// just use devPath |
- SkIRect ir; |
- devPath.getBounds().roundOut(&ir); |
+ const SkIRect ir = devPath.getBounds().roundOut(); |
if (ir.isEmpty() || !ir.is16Bit()) { |
goto SK_ERROR; |