Index: gm/gmmain.cpp |
=================================================================== |
--- gm/gmmain.cpp (revision 9003) |
+++ gm/gmmain.cpp (working copy) |
@@ -358,7 +358,7 @@ |
const SkDynamicMemoryWStream& document) { |
SkFILEWStream stream(path.c_str()); |
SkAutoDataUnref data(document.copyToData()); |
- return stream.writeData(data.get()); |
+ return stream.write(data->data(), data->size()); |
} |
/** |