Commit 00ed0a5f authored by Milo Yip's avatar Milo Yip

Fix gcc warning

parent b010f388
...@@ -98,7 +98,7 @@ private: ...@@ -98,7 +98,7 @@ private:
filterValueDepth_ = 0; filterValueDepth_ = 0;
return true; return true;
} }
OutputHandler& outputHandler_; OutputHandler& outputHandler_;
const char* keyString_; const char* keyString_;
const SizeType keyLength_; const SizeType keyLength_;
...@@ -113,7 +113,7 @@ public: ...@@ -113,7 +113,7 @@ public:
typedef char Ch; typedef char Ch;
FilterKeyReader(InputStream& is, const Ch* keyString, SizeType keyLength) : FilterKeyReader(InputStream& is, const Ch* keyString, SizeType keyLength) :
is_(is), keyString_(keyString), keyLength_(keyLength) is_(is), keyString_(keyString), keyLength_(keyLength), parseResult_()
{} {}
// SAX event flow: reader -> filter -> handler // SAX event flow: reader -> filter -> handler
...@@ -121,7 +121,8 @@ public: ...@@ -121,7 +121,8 @@ public:
bool operator()(Handler& handler) { bool operator()(Handler& handler) {
FilterKeyHandler<Handler> filter(handler, keyString_, keyLength_); FilterKeyHandler<Handler> filter(handler, keyString_, keyLength_);
Reader reader; Reader reader;
return parseResult_ = reader.Parse(is_, filter); parseResult_ = reader.Parse(is_, filter);
return parseResult_;
} }
const ParseResult& GetParseResult() const { return parseResult_; } const ParseResult& GetParseResult() const { return parseResult_; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment