diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index b3cdef6..55a6918 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -188,7 +188,7 @@ struct QVariant_to_python_obj case QVariant::List: { QVariantList list = var.toList(); PyObject *result = PyList_New(list.count()); - foreach (QVariant var, list) { + for (QVariant var : list) { PyList_Append(result, convert(var)); } return result; @@ -722,12 +722,12 @@ BOOST_PYTHON_MODULE(mobase) .def("pluginList", bpy::pure_virtual(&IOrganizer::pluginList), bpy::return_value_policy()) .def("modList", bpy::pure_virtual(&IOrganizer::modList), bpy::return_value_policy()) .def("startApplication", bpy::pure_virtual(&IOrganizer::startApplication), bpy::return_value_policy()) - //.def("waitForApplication", bpy::pure_virtual(&IOrganizer::waitForApplication), bpy::return_value_policy()) + //.def("waitForApplication", bpy::pure_virtual(&IOrganizer::waitForApplication), (bpy::arg("exitCode")=nullptr), bpy::return_value_policy()) .def("onAboutToRun", bpy::pure_virtual(&IOrganizer::onAboutToRun)) .def("onFinishedRun", bpy::pure_virtual(&IOrganizer::onFinishedRun)) .def("onModInstalled", bpy::pure_virtual(&IOrganizer::onModInstalled)) .def("refreshModList", bpy::pure_virtual(&IOrganizer::refreshModList)) - .def("profile", bpy::pure_virtual(&IOrganizer::profile), bpy::return_value_policy()) + .def("profile", bpy::pure_virtual(&IOrganizer::profile), bpy::return_value_policy()) .def("managedGame", bpy::pure_virtual(&IOrganizer::managedGame), bpy::return_value_policy()) .def("modsSortedByProfilePriority", bpy::pure_virtual(&IOrganizer::modsSortedByProfilePriority)) ;