X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Ftrace_parser.cpp;fp=common%2Ftrace_parser.cpp;h=17f4a154590ab2db7f809cadb5d21e15b7c589ea;hb=06e85193037ea678ddfb78e23fe65a13516448e0;hp=530c19a5a06fe00c7009a5cf7f7744971a0e41f1;hpb=2f2ea48c8f1729bf20936d550b6294bafadb6140;p=apitrace diff --git a/common/trace_parser.cpp b/common/trace_parser.cpp index 530c19a..17f4a15 100644 --- a/common/trace_parser.cpp +++ b/common/trace_parser.cpp @@ -171,7 +171,7 @@ void Parser::setBookmark(const ParseBookmark &bookmark) { Call *Parser::parse_call(Mode mode) { do { int c = read_byte(); - switch(c) { + switch (c) { case Trace::EVENT_ENTER: parse_enter(mode); break; @@ -373,7 +373,7 @@ Call *Parser::parse_leave(Mode mode) { bool Parser::parse_call_details(Call *call, Mode mode) { do { int c = read_byte(); - switch(c) { + switch (c) { case Trace::CALL_END: return true; case Trace::CALL_ARG: @@ -409,7 +409,7 @@ Value *Parser::parse_value(void) { int c; Value *value; c = read_byte(); - switch(c) { + switch (c) { case Trace::TYPE_NULL: value = new Null; break; @@ -470,7 +470,7 @@ Value *Parser::parse_value(void) { void Parser::scan_value(void) { int c = read_byte(); - switch(c) { + switch (c) { case Trace::TYPE_NULL: case Trace::TYPE_FALSE: case Trace::TYPE_TRUE: