summaryrefslogtreecommitdiff
path: root/src/ValueBaseStructParserStateImpl.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:39:47 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-12-27 18:40:08 +0900
commitb1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch)
tree9ce465b42bf09372118335c7c619bb2b41869eaf /src/ValueBaseStructParserStateImpl.cc
parent4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff)
make clang-format using clang-format-3.6
Diffstat (limited to 'src/ValueBaseStructParserStateImpl.cc')
-rw-r--r--src/ValueBaseStructParserStateImpl.cc44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/ValueBaseStructParserStateImpl.cc b/src/ValueBaseStructParserStateImpl.cc
index 8118675b..2407eae2 100644
--- a/src/ValueBaseStructParserStateImpl.cc
+++ b/src/ValueBaseStructParserStateImpl.cc
@@ -41,10 +41,10 @@
namespace aria2 {
-void ValueValueBaseStructParserState::beginElement
-(ValueBaseStructParserStateMachine* psm, int elementType)
+void ValueValueBaseStructParserState::beginElement(
+ ValueBaseStructParserStateMachine* psm, int elementType)
{
- switch(elementType) {
+ switch (elementType) {
case STRUCT_DICT_T:
psm->setCurrentFrameValue(Dict::g());
psm->pushDictState();
@@ -71,10 +71,10 @@ void ValueValueBaseStructParserState::beginElement
}
}
-void DictValueBaseStructParserState::beginElement
-(ValueBaseStructParserStateMachine* psm, int elementType)
+void DictValueBaseStructParserState::beginElement(
+ ValueBaseStructParserStateMachine* psm, int elementType)
{
- switch(elementType) {
+ switch (elementType) {
case STRUCT_DICT_KEY_T:
psm->pushFrame();
psm->pushDictKeyState();
@@ -88,53 +88,53 @@ void DictValueBaseStructParserState::beginElement
}
}
-void DictKeyValueBaseStructParserState::endElement
-(ValueBaseStructParserStateMachine* psm, int elementType)
+void DictKeyValueBaseStructParserState::endElement(
+ ValueBaseStructParserStateMachine* psm, int elementType)
{
psm->setCurrentFrameName(psm->getCharacters());
}
-void DictDataValueBaseStructParserState::endElement
-(ValueBaseStructParserStateMachine* psm, int elementType)
+void DictDataValueBaseStructParserState::endElement(
+ ValueBaseStructParserStateMachine* psm, int elementType)
{
psm->popDictFrame();
}
-void ArrayValueBaseStructParserState::beginElement
-(ValueBaseStructParserStateMachine* psm, int elementType)
+void ArrayValueBaseStructParserState::beginElement(
+ ValueBaseStructParserStateMachine* psm, int elementType)
{
assert(elementType == STRUCT_ARRAY_DATA_T);
psm->pushFrame();
psm->pushArrayDataState();
}
-void ArrayDataValueBaseStructParserState::endElement
-(ValueBaseStructParserStateMachine* psm, int elementType)
+void ArrayDataValueBaseStructParserState::endElement(
+ ValueBaseStructParserStateMachine* psm, int elementType)
{
psm->popArrayFrame();
}
-void StringValueBaseStructParserState::endElement
-(ValueBaseStructParserStateMachine* psm, int elementType)
+void StringValueBaseStructParserState::endElement(
+ ValueBaseStructParserStateMachine* psm, int elementType)
{
psm->setCurrentFrameValue(String::g(psm->getCharacters()));
}
-void NumberValueBaseStructParserState::endElement
-(ValueBaseStructParserStateMachine* psm, int elementType)
+void NumberValueBaseStructParserState::endElement(
+ ValueBaseStructParserStateMachine* psm, int elementType)
{
// TODO Ignore frac and exp
psm->setCurrentFrameValue(Integer::g(psm->getNumber().number));
}
-void BoolValueBaseStructParserState::endElement
-(ValueBaseStructParserStateMachine* psm, int elementType)
+void BoolValueBaseStructParserState::endElement(
+ ValueBaseStructParserStateMachine* psm, int elementType)
{
psm->setCurrentFrameValue(psm->getBool() ? Bool::gTrue() : Bool::gFalse());
}
-void NullValueBaseStructParserState::endElement
-(ValueBaseStructParserStateMachine* psm, int elementType)
+void NullValueBaseStructParserState::endElement(
+ ValueBaseStructParserStateMachine* psm, int elementType)
{
psm->setCurrentFrameValue(Null::g());
}