Gui: modernize C++: return braced init list
This commit is contained in:
@@ -742,7 +742,7 @@ QDialogButtonBox::StandardButtons TaskDialogPython::getStandardButtons() const
|
||||
Py::Tuple args;
|
||||
Py::Int ret(method.apply(args));
|
||||
int value = (int)ret;
|
||||
return QDialogButtonBox::StandardButtons(value);
|
||||
return {value};
|
||||
}
|
||||
}
|
||||
catch (Py::Exception&) {
|
||||
|
||||
Reference in New Issue
Block a user