Fix formatting

This commit is contained in:
2025-08-15 22:49:18 -04:00
parent f890172431
commit 5ffef98e3d
2 changed files with 3 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ void CommitRequest::on_end_object(void *userdata) {
} }
ParseState current_state = ctx.current_state; ParseState current_state = ctx.current_state;
// Handle state transitions on object end // Handle state transitions on object end
if (current_state == ParseState::PreconditionObject) { if (current_state == ParseState::PreconditionObject) {
ctx.current_state = ParseState::PreconditionsArray; ctx.current_state = ParseState::PreconditionsArray;
@@ -244,7 +244,7 @@ void CommitRequest::on_end_array(void *userdata) {
} }
// Transition back to Root state when arrays end // 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::OperationsArray) {
ctx.current_state = ParseState::Root; ctx.current_state = ParseState::Root;
} }

View File

@@ -99,8 +99,7 @@ public:
// Constructor to initialize arena-allocated containers // Constructor to initialize arena-allocated containers
explicit ParserContext() explicit ParserContext()
: : current_key(ArenaStlAllocator<char>(&arena)),
current_key(ArenaStlAllocator<char>(&arena)),
current_string(ArenaStlAllocator<char>(&arena)), current_string(ArenaStlAllocator<char>(&arena)),
current_number(ArenaStlAllocator<char>(&arena)), current_number(ArenaStlAllocator<char>(&arena)),
precondition_type(ArenaStlAllocator<char>(&arena)), precondition_type(ArenaStlAllocator<char>(&arena)),