Navigation Menu

Skip to content

Commit

Permalink
minor style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
polotek committed Nov 20, 2010
1 parent d21a4d5 commit c4f3e63
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/xml_sax_parser.cc
Expand Up @@ -3,8 +3,7 @@

namespace libxmljs {

XmlSaxParser::XmlSaxParser() : sax_handler_(new _xmlSAXHandler) {
context_ = 0;
XmlSaxParser::XmlSaxParser() : sax_handler_(new xmlSAXHandler), context_(NULL) {

xmlSAXHandler tmp = {
0, // internalSubset;
Expand Down Expand Up @@ -65,7 +64,6 @@ XmlSaxParser::releaseContext() {
}
}


v8::Handle<v8::Value>
XmlSaxParser::NewParser(const v8::Arguments& args) {
v8::HandleScope scope;
Expand Down Expand Up @@ -162,7 +160,7 @@ void
XmlSaxParser::push(const char* str,
unsigned int size,
bool terminate = false) {
xmlParseChunk(context_, str, size, terminate);
int e = xmlParseChunk(context_, str, size, terminate);
}

v8::Handle<v8::Value>
Expand Down Expand Up @@ -219,7 +217,7 @@ XmlSaxParser::parse() {
initializeContext();
context_->replaceEntities = 1;
context_->sax = sax_handler_;
xmlParseDocument(context_);
int e = xmlParseDocument(context_);
}

void
Expand Down

0 comments on commit c4f3e63

Please sign in to comment.