Fix several clazy issue:

* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
This commit is contained in:
wmayer
2022-07-24 22:29:06 +02:00
parent 9b30f9328b
commit 25483b78be
12 changed files with 17 additions and 17 deletions

View File

@@ -118,7 +118,7 @@ PyObject* CommandPy::listByShortcut(PyObject *args)
PyObject* pyList = PyList_New(matches.size());
int i=0;
for (std::string match : matches) {
for (const std::string& match : matches) {
PyObject* str = PyUnicode_FromString(match.c_str());
PyList_SetItem(pyList, i++, str);
}