From aacf3654d862ad84bb7a49be2aa35afe6f9cd8c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Fri, 20 Nov 2020 21:42:07 +0100 Subject: [PATCH] Add default argument to GuessedString constructor to match C++ implementation. --- src/runner/pythonrunner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner/pythonrunner.cpp b/src/runner/pythonrunner.cpp index 07f6d89..b5cf1d2 100644 --- a/src/runner/pythonrunner.cpp +++ b/src/runner/pythonrunner.cpp @@ -712,7 +712,7 @@ BOOST_PYTHON_MODULE(mobase) bpy::class_, boost::noncopyable>("GuessedString") .def(bpy::init<>()) - .def(bpy::init((bpy::arg("value"), "quality"))) + .def(bpy::init((bpy::arg("value"), bpy::arg("quality") = EGuessQuality::GUESS_USER))) .def("update", static_cast& (GuessedValue::*)(const QString&)>(&GuessedValue::update), bpy::return_self<>(), bpy::arg("value"))