Skip to content

Commit

Permalink
Some more review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Meisrimel authored and Peter Meisrimel committed Aug 8, 2024
1 parent 1c33d6e commit d5115c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/XML/src/FMI3/fmi3_xml_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1460,7 +1460,6 @@ int fmi3_xml_parse_model_description(fmi3_xml_model_description_t* md,

context->modelDescription = md;
if (fmi3_xml_alloc_parse_buffer(context, 16)) return -1;
// if (fmi3_create_modelDescription_attr_map(context) || fmi3_create_modelDescription_elm_map(context)) {
if (fmi3_create_attr_map(context) || fmi3_create_elm_map(context)) {
fmi3_xml_parse_fatal(context, "Error in parsing initialization");
fmi3_xml_parse_free_context(context);
Expand Down
3 changes: 2 additions & 1 deletion src/XML/src/FMI3/fmi3_xml_parser_context_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ jm_vector_declare_template(fmi3_xml_element_handle_map_t)
*/
struct fmi3_xml_parser_context_t {

/* Flag for XML being handled, MUST BE FIRST */
/* Flag for XML being handled, e.g., modelDescription, terminalsAndIcons...
MUST BE FIRST due setting as const in fmi3_xml_allocate_parser_context */
const fmi3_xml_type_t xmlType;

/**
Expand Down

0 comments on commit d5115c9

Please sign in to comment.