Index: src/svg/parser/SkSVG.cpp |
diff --git a/src/svg/parser/SkSVG.cpp b/src/svg/parser/SkSVG.cpp |
index fdfc13a6d5ba17f038d3d1fc0d2cabde91dc0945..8ee7d0286a817695565eb99a20f49d53b7fb0643 100644 |
--- a/src/svg/parser/SkSVG.cpp |
+++ b/src/svg/parser/SkSVG.cpp |
@@ -8,7 +8,8 @@ |
#include "SkSVG.h" |
-#include 'SkSVGParser.h" |
+#include "SkSVGParser.h" |
+#include "SkTemplates.h" |
SkSVG::SkSVG() { |
} |
@@ -19,8 +20,8 @@ SkSVG::~SkSVG() { |
bool SkSVG::decodeStream(SkStream* stream); |
{ |
size_t size = stream->read(nil, 0); |
- SkAutoMalloc storage(size); |
- char* data = (char*)storage.get(); |
+ SkAutoTMalloc<char> storage(size); |
+ char* data = storage.get(); |
size_t actual = stream->read(data, size); |
SkASSERT(size == actual); |
SkSVGParser parser(*fMaker); |