Skip to content

Commit

Permalink
[MISC] Use braces for initialisation of return value in prepend_dash.
Browse files Browse the repository at this point in the history
  • Loading branch information
smehringer committed Oct 29, 2020
1 parent cc3d1a0 commit b801b4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/seqan3/argument_parser/detail/format_parse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class format_parse : public format_base
*/
static std::string prepend_dash(std::string const & long_id)
{
return ("--" + long_id);
return {"--" + long_id};
}

/*!\brief Appends a double dash to a short identifier and returns it.
Expand All @@ -230,7 +230,7 @@ class format_parse : public format_base
*/
static std::string prepend_dash(char const short_id)
{
return ("-" + std::string(1, short_id));
return {"-" + std::string{short_id}};
}

/*!\brief Returns "-[short_id]/--[long_id]" if both are non-empty or just one of them if the other is empty.
Expand Down

0 comments on commit b801b4f

Please sign in to comment.