Base: cppcoreguidelines

This commit is contained in:
wmayer
2023-11-23 17:25:37 +01:00
committed by wwmayer
parent b5adfff293
commit c2694fd7d9
11 changed files with 51 additions and 55 deletions

View File

@@ -76,8 +76,8 @@ struct string_comp
class unique_name
{
public:
unique_name(const std::string& name, const std::vector<std::string>& names, int padding)
: base_name {name}
unique_name(std::string name, const std::vector<std::string>& names, int padding)
: base_name {std::move(name)}
, padding {padding}
{
removeDigitsFromEnd();