Commit fda30388 authored by David Jarvie's avatar David Jarvie
Browse files

cppunit fixes

parent feeff42c
Pipeline #164443 passed with stage
in 3 minutes and 17 seconds
......@@ -57,7 +57,7 @@ void Label::setBuddy(QWidget* bud)
if (!mFocusWidget)
mFocusWidget = new LabelFocusWidget(this);
QLabel::setBuddy(mFocusWidget);
mRadioButton = (QRadioButton*)bud;
mRadioButton = static_cast<QRadioButton*>(bud);
connect(mRadioButton, &QRadioButton::destroyed, this, &Label::buddyDead);
}
}
......@@ -96,7 +96,7 @@ LabelFocusWidget::LabelFocusWidget(QWidget* parent)
void LabelFocusWidget::focusInEvent(QFocusEvent*)
{
auto* parent = (Label*)parentWidget();
auto* parent = static_cast<Label*>(parentWidget());
parent->activated();
}
......
......@@ -386,7 +386,7 @@ bool SpinBox2::eventFilter(QObject* obj, QEvent* e)
break;
case QEvent::MouseButtonRelease:
{
auto* me = (QMouseEvent*)e;
auto* me = static_cast<QMouseEvent*>(e);
if (me->button() == Qt::LeftButton)
paintTimer(); // cause the mirror widget buttons to be updated
break;
......
......@@ -61,7 +61,7 @@ void CalendarUpdater::waitForCompletion()
delete mInstances.at(i); // the destructor removes the instance from mInstances
QCoreApplication::processEvents();
if (!mInstances.isEmpty())
if (!mInstances.isEmpty()) //cppcheck-suppress knownConditionTrueFalse; 'delete' removes from mInstances
QThread::msleep(100);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment