comma_delimited_to_vector() optimization CID#465430

(I am not sure about this, just doing as coverity says.)

Change-Id: I30e57c6a9df39552bc4f8c18d27bc421f5c60f49
This commit is contained in:
Neels Hofmeyr
2025-01-16 18:21:42 +01:00
parent 3642b5956c
commit 8a71a7dd5d

View File

@@ -28,7 +28,7 @@ std::vector<std::string> comma_delimited_to_vector(const char* opt)
{
std::string substr;
getline(ss, substr, ',');
result.push_back(substr);
result.push_back(std::move(substr));
}
return result;
}