Skip to content

Commit b620135

Browse files
committed
replace unneccessary "std::string(name)" with just "name"
1 parent 565adea commit b620135

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vpr/src/server/telegramoptions.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ int TelegramOptions::get_int(const std::string& name, int fail_value) {
7575
if (std::optional<int> opt = try_convert_to_int(m_options[name].value)) {
7676
return opt.value();
7777
} else {
78-
m_errors.emplace_back("cannot get int value for option " + std::string(name));
78+
m_errors.emplace_back("cannot get int value for option " + name);
7979
return fail_value;
8080
}
8181
}
@@ -84,7 +84,7 @@ bool TelegramOptions::get_bool(const std::string& name, bool fail_value) {
8484
if (std::optional<int> opt = try_convert_to_int(m_options[name].value)) {
8585
return opt.value();
8686
} else {
87-
m_errors.emplace_back("cannot get bool value for option " + std::string(name));
87+
m_errors.emplace_back("cannot get bool value for option " + name);
8888
return fail_value;
8989
}
9090
}

0 commit comments

Comments
 (0)