Fix formatting
This commit is contained in:
@@ -104,7 +104,7 @@ void CommitRequest::on_end_object(void *userdata) {
|
||||
}
|
||||
|
||||
ParseState current_state = ctx.current_state;
|
||||
|
||||
|
||||
// Handle state transitions on object end
|
||||
if (current_state == ParseState::PreconditionObject) {
|
||||
ctx.current_state = ParseState::PreconditionsArray;
|
||||
@@ -244,7 +244,7 @@ void CommitRequest::on_end_array(void *userdata) {
|
||||
}
|
||||
|
||||
// Transition back to Root state when arrays end
|
||||
if (ctx.current_state == ParseState::PreconditionsArray ||
|
||||
if (ctx.current_state == ParseState::PreconditionsArray ||
|
||||
ctx.current_state == ParseState::OperationsArray) {
|
||||
ctx.current_state = ParseState::Root;
|
||||
}
|
||||
|
||||
@@ -99,8 +99,7 @@ public:
|
||||
|
||||
// Constructor to initialize arena-allocated containers
|
||||
explicit ParserContext()
|
||||
:
|
||||
current_key(ArenaStlAllocator<char>(&arena)),
|
||||
: current_key(ArenaStlAllocator<char>(&arena)),
|
||||
current_string(ArenaStlAllocator<char>(&arena)),
|
||||
current_number(ArenaStlAllocator<char>(&arena)),
|
||||
precondition_type(ArenaStlAllocator<char>(&arena)),
|
||||
|
||||
Reference in New Issue
Block a user