Skip to content

Commit

Permalink
Refs #21186: Apply Miguel' suggestion
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <[email protected]>
  • Loading branch information
JesusPoderoso committed Jul 10, 2024
1 parent 169fff8 commit b82d719
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/cpp/topic_instances/CLIParser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ class CLIParser
input == "Circle" || input == "Square" || input == "Triangle" ||
input == "circle" || input == "square" || input == "triangle")
{
transform(input.begin(), input.begin(), input.begin(), ::toupper);
transform(input.begin(), input.begin() + 1, input.begin(), ::toupper);
transform(input.begin() + 1, input.end(), input.begin() + 1, ::tolower);
if (config.entity == CLIParser::EntityKind::PUBLISHER)
{
Expand Down Expand Up @@ -647,9 +647,7 @@ class CLIParser
EPROSIMA_LOG_ERROR(CLI_PARSER, "unknown option " + arg);
print_help(EXIT_FAILURE);
}
}

// Calculate shape bounds if applies
}examples/cpp/dds/HelloWorldExampleTCP/HelloWorldPublisher.cpp
if (config.entity == CLIParser::EntityKind::PUBLISHER)
{
config.pub_config.shape_config.x = static_cast<int>(config.pub_config.shape_config.width / 2);
Expand Down

0 comments on commit b82d719

Please sign in to comment.