Commit c891729f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix clazy warning

parent 8ae7d649
Pipeline #22937 passed with stage
in 8 minutes and 7 seconds
...@@ -911,7 +911,7 @@ void LdapConfigWidget::setFeatures(LdapConfigWidget::WinFlags features) ...@@ -911,7 +911,7 @@ void LdapConfigWidget::setFeatures(LdapConfigWidget::WinFlags features)
QList<QObject *> ch = children(); QList<QObject *> ch = children();
const int numberOfChild(ch.count()); const int numberOfChild(ch.count());
for (int i = 0; i < numberOfChild; ++i) { for (int i = 0; i < numberOfChild; ++i) {
QWidget *widget = dynamic_cast<QWidget *>(ch[ i ]); QWidget *widget = qobject_cast<QWidget *>(ch[ i ]);
if (widget && widget->parent() == this) { if (widget && widget->parent() == this) {
delete(widget); delete(widget);
} }
......
Markdown is supported
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