Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(901)

Unified Diff: src/ports/SkXMLPullParser_expat.cpp

Issue 12834012: Update code to use helper function for better readability/searching. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ports/SkXMLParser_tinyxml.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkXMLPullParser_expat.cpp
diff --git a/src/ports/SkXMLPullParser_expat.cpp b/src/ports/SkXMLPullParser_expat.cpp
index 1d1615bcdcc78e414b40dc40a27d7717e247d0be..44a3c7f81eae0f75d3507660b2c348613df49e81 100644
--- a/src/ports/SkXMLPullParser_expat.cpp
+++ b/src/ports/SkXMLPullParser_expat.cpp
@@ -152,7 +152,7 @@ bool SkXMLPullParser::onInit()
XML_SetCharacterDataHandler(p, text_proc);
XML_SetUserData(p, &fImpl->fData);
- size_t len = fStream->read(NULL, 0);
+ size_t len = fStream->getLength();
fImpl->fBufferLen = len;
fImpl->fBuffer = sk_malloc_throw(len);
fStream->rewind();
« no previous file with comments | « src/ports/SkXMLParser_tinyxml.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698