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

Unified Diff: src/ports/SkXMLParser_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/SkFontHost_FreeType.cpp ('k') | src/ports/SkXMLParser_tinyxml.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkXMLParser_expat.cpp
diff --git a/src/ports/SkXMLParser_expat.cpp b/src/ports/SkXMLParser_expat.cpp
index afc9f79fb5d73f3a8bcbd8f5807cdad1ef7496bb..3eba2fe8e0c4d0faae3e6cac99fc3b64bddd4f60 100644
--- a/src/ports/SkXMLParser_expat.cpp
+++ b/src/ports/SkXMLParser_expat.cpp
@@ -113,7 +113,7 @@ bool SkXMLParser::parse(const char doc[], size_t len)
bool SkXMLParser::parse(SkStream& input)
{
- size_t len = input.read(NULL, 0);
+ size_t len = input.getLength();
SkAutoMalloc am(len);
char* doc = (char*)am.get();
« no previous file with comments | « src/ports/SkFontHost_FreeType.cpp ('k') | src/ports/SkXMLParser_tinyxml.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698