diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-12 01:06:52 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-11-12 01:06:52 +0900 |
| commit | 2f4393d17c7120912ad7b2b820b46124010a5a5e (patch) | |
| tree | 78c0e632175fc4c9b61d08c62b46a905cb4c853d /src/XmlRpcRequestParserStateImpl.cc | |
| parent | 226480ad605cb9f7c4b5dbb0167f3fd67c8672ce (diff) | |
Rewritten parse*Int
Diffstat (limited to 'src/XmlRpcRequestParserStateImpl.cc')
| -rw-r--r-- | src/XmlRpcRequestParserStateImpl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/XmlRpcRequestParserStateImpl.cc b/src/XmlRpcRequestParserStateImpl.cc index a71ec3e8..947a378a 100644 --- a/src/XmlRpcRequestParserStateImpl.cc +++ b/src/XmlRpcRequestParserStateImpl.cc @@ -200,10 +200,10 @@ void IntXmlRpcRequestParserState::endElement const char* name, const std::string& characters) { - try { - int64_t value = util::parseLLInt(characters.begin(), characters.end()); + int64_t value; + if(util::parseLLIntNoThrow(value, characters)) { psm->setCurrentFrameValue(Integer::g(value)); - } catch(RecoverableException& e) { + } else { // nothing to do here: We just leave current frame value to null. } } |
