modernize C++: use bool literals

This commit is contained in:
wmayer
2023-08-05 23:44:44 +02:00
committed by wwmayer
parent 5be3ad33aa
commit 7a3106d31b
25 changed files with 46 additions and 46 deletions

View File

@@ -582,7 +582,7 @@ Py::Object PyResource::value(const Py::Tuple& args)
item = Py::Float(v.toDouble());
break;
case QMetaType::Bool:
item = Py::Boolean(v.toBool() ? 1 : 0);
item = Py::Boolean(v.toBool());
break;
case QMetaType::UInt:
item = Py::Long(static_cast<unsigned long>(v.toUInt()));