Skip to content

Commit

Permalink
Refs #21154: Linter
Browse files Browse the repository at this point in the history
Signed-off-by: Mario Dominguez <mariodominguez@eprosima.com>
  • Loading branch information
Mario-DL committed Jun 12, 2024
1 parent ad55086 commit 5891a84
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/cpp/xmlparser/XMLDynamicParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@ XMLP_ret XMLParser::parseXMLAliasDynamicType(
}
catch (const std::exception&)
{
EPROSIMA_LOG_ERROR(XMLPARSER, "Error parsing alias type bound: '" << STR_MAXLENGTH << "' out of bounds.");
EPROSIMA_LOG_ERROR(XMLPARSER,
"Error parsing alias type bound: '" << STR_MAXLENGTH << "' out of bounds.");
return XMLP_ret::XML_ERROR;
}
}
Expand Down Expand Up @@ -556,7 +557,8 @@ XMLP_ret XMLParser::parseXMLBitsetDynamicType(
}
catch (const std::exception&)
{
EPROSIMA_LOG_ERROR(XMLPARSER, "Error parsing bitfield type bound: '" << BIT_BOUND << "' out of bounds.");
EPROSIMA_LOG_ERROR(XMLPARSER,
"Error parsing bitfield type bound: '" << BIT_BOUND << "' out of bounds.");
return XMLP_ret::XML_ERROR;
}
}
Expand Down Expand Up @@ -892,7 +894,7 @@ XMLP_ret XMLParser::parseXMLEnumDynamicType(
DynamicTypeBuilder::_ref_type type_builder {DynamicTypeBuilderFactory::get_instance()->create_type(
enum_descriptor)};

if(nullptr != type_builder)
if (nullptr != type_builder)
{
for (tinyxml2::XMLElement* literal = p_root->FirstChildElement(ENUMERATOR);
literal != nullptr; literal = literal->NextSiblingElement(ENUMERATOR))
Expand Down Expand Up @@ -1616,7 +1618,8 @@ DynamicType::_ref_type XMLParser:: parseXMLMemberDynamicType(
}
catch (const std::exception&)
{
EPROSIMA_LOG_ERROR(XMLPARSER, "Error parsing alias type bound: '" << STR_MAXLENGTH << "' out of bounds.");
EPROSIMA_LOG_ERROR(XMLPARSER,
"Error parsing alias type bound: '" << STR_MAXLENGTH << "' out of bounds.");
return {};
}
}
Expand Down Expand Up @@ -1649,7 +1652,8 @@ DynamicType::_ref_type XMLParser:: parseXMLMemberDynamicType(
}
catch (const std::exception&)
{
EPROSIMA_LOG_ERROR(XMLPARSER, "Error parsing alias type bound: '" << STR_MAXLENGTH << "' out of bounds.");
EPROSIMA_LOG_ERROR(XMLPARSER,
"Error parsing alias type bound: '" << STR_MAXLENGTH << "' out of bounds.");
return {};
}
}
Expand Down

0 comments on commit 5891a84

Please sign in to comment.