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

Unified Diff: src/ports/SkXMLParser_tinyxml.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_expat.cpp ('k') | src/ports/SkXMLPullParser_expat.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkXMLParser_tinyxml.cpp
diff --git a/src/ports/SkXMLParser_tinyxml.cpp b/src/ports/SkXMLParser_tinyxml.cpp
index f357592b296a0508377d4a3221b7d097ad7661c1..5f9f3a68de8d54892d16975a5d00c77ba002ebc1 100644
--- a/src/ports/SkXMLParser_tinyxml.cpp
+++ b/src/ports/SkXMLParser_tinyxml.cpp
@@ -58,7 +58,7 @@ static bool load_buf(SkXMLParser* parser, const char buf[])
bool SkXMLParser::parse(SkStream& stream)
{
- size_t size = stream.read(NULL, 0);
+ size_t size = stream.getLength();
SkAutoMalloc buffer(size + 1);
char* buf = (char*)buffer.get();
« no previous file with comments | « src/ports/SkXMLParser_expat.cpp ('k') | src/ports/SkXMLPullParser_expat.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698