Gui: remove some superfluous const_cast

This commit is contained in:
wmayer
2022-06-24 14:48:52 +02:00
parent c955372ecf
commit e53e231677
5 changed files with 12 additions and 12 deletions

View File

@@ -292,7 +292,7 @@ QMap<QString, CallTip> CallTipsList::extractTips(const QString& context) const
// If we have an instance of PyObjectBase then determine whether it's valid or not
if (PyObject_IsInstance(inst.ptr(), typeobj) == 1) {
Base::PyObjectBase* baseobj = static_cast<Base::PyObjectBase*>(inst.ptr());
const_cast<CallTipsList*>(this)->validObject = baseobj->isValid();
validObject = baseobj->isValid();
}
else {
// PyObject_IsInstance might set an exception