summaryrefslogtreecommitdiff
path: root/src/XmlRpcRequestParserStateImpl.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-19 17:54:54 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-06-19 17:54:54 +0000
commitcb4e25e4b4a2cfa6349a25586a44c932022e6841 (patch)
tree15c0713df0ca88784a0c95a466e3a846192f290b /src/XmlRpcRequestParserStateImpl.cc
parent8ba97188ce42be38b5427e9bd70bb7f5ba8238f9 (diff)
2010-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed BDE and bencode
Diffstat (limited to 'src/XmlRpcRequestParserStateImpl.cc')
-rw-r--r--src/XmlRpcRequestParserStateImpl.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/XmlRpcRequestParserStateImpl.cc b/src/XmlRpcRequestParserStateImpl.cc
index 30efcc3d..1778f5f6 100644
--- a/src/XmlRpcRequestParserStateImpl.cc
+++ b/src/XmlRpcRequestParserStateImpl.cc
@@ -83,7 +83,7 @@ void MethodCallXmlRpcRequestParserState::beginElement
if(name == elements::METHOD_NAME) {
stm->pushMethodNameState();
} else if(name == elements::A2_PARAMS) {
- stm->setCurrentFrameValue(BDE::list());
+ stm->setCurrentFrameValue(List::g());
stm->pushParamsState();
} else {
stm->pushUnknownElementState();
@@ -155,10 +155,10 @@ void ValueXmlRpcRequestParserState::beginElement
if(name == elements::I4 || name == elements::INT) {
stm->pushIntState();
} else if(name == elements::STRUCT) {
- stm->setCurrentFrameValue(BDE::dict());
+ stm->setCurrentFrameValue(Dict::g());
stm->pushStructState();
} else if(name == elements::ARRAY) {
- stm->setCurrentFrameValue(BDE::list());
+ stm->setCurrentFrameValue(List::g());
stm->pushArrayState();
} else if(name == elements::STRING || name == elements::DOUBLE) {
stm->pushStringState();
@@ -186,9 +186,9 @@ void IntXmlRpcRequestParserState::endElement
{
try {
int64_t value = util::parseLLInt(characters);
- stm->setCurrentFrameValue(BDE(value));
+ stm->setCurrentFrameValue(Integer::g(value));
} catch(RecoverableException& e) {
- // nothing to do here: We just leave current frame value to BDE::none
+ // nothing to do here: We just leave current frame value to null.
}
}
@@ -207,7 +207,7 @@ void StringXmlRpcRequestParserState::endElement
const std::string& name,
const std::string& characters)
{
- stm->setCurrentFrameValue(BDE(characters));
+ stm->setCurrentFrameValue(String::g(characters));
}
// Base64XmlRpcRequestParserState
@@ -225,7 +225,7 @@ void Base64XmlRpcRequestParserState::endElement
const std::string& name,
const std::string& characters)
{
- stm->setCurrentFrameValue(BDE(Base64::decode(characters)));
+ stm->setCurrentFrameValue(String::g(Base64::decode(characters)));
}
// StructXmlRpcRequestParserState