Skip to content

Commit a3aef6d

Browse files
committed
optimize Option instance creation
1 parent aadee42 commit a3aef6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vpr/src/server/telegramoptions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ TelegramOptions::TelegramOptions(const std::string& data, const std::vector<std:
1616
std::vector<std::string> fragments = vtr::split(optionStr, ":");
1717
if (fragments.size() == TOTAL_INDEXES_NUM) {
1818
const std::string& name = fragments[INDEX_NAME];
19-
Option option{fragments[INDEX_TYPE], fragments[INDEX_VALUE]};
19+
Option option{std::move(fragments[INDEX_TYPE]), std::move(fragments[INDEX_VALUE])};
2020
if (isDataTypeSupported(option.type)) {
2121
m_options[name] = option;
2222
} else {

0 commit comments

Comments
 (0)