mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-10-17 03:59:19 +02:00
refactor(sonar): construct elements in place with emplace_back (cpp:S6003)
This commit is contained in:
@@ -712,7 +712,7 @@ std::vector<std::string> python_external_utils::PyObjectToStringArray(PyObject *
|
||||
return emptyIfError;
|
||||
}
|
||||
|
||||
result.push_back(std::string(str));
|
||||
result.emplace_back(str);
|
||||
Py_DECREF(item); // Decrease reference count for the item
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user