diff --git a/plugins/robots/common/kitBase/src/devicesConfigurationWidget.cpp b/plugins/robots/common/kitBase/src/devicesConfigurationWidget.cpp index dcaaf5eeb7..90d08d845d 100644 --- a/plugins/robots/common/kitBase/src/devicesConfigurationWidget.cpp +++ b/plugins/robots/common/kitBase/src/devicesConfigurationWidget.cpp @@ -114,7 +114,7 @@ QLayout *DevicesConfigurationWidget::initPort(const QString &robotModelName if (mAutosaveMode) { connect(comboBox, &QComboBox::currentTextChanged, this, [this](){ - propagateChangesFromBox(static_cast(sender())); + propagateChangesFromBox(qobject_cast(sender())); }); } @@ -144,8 +144,8 @@ void DevicesConfigurationWidget::refresh() { mRefreshing = true; for (QComboBox * const box : mConfigurers) { - const PortInfo port = box->property("port").value(); - const DeviceInfo device = currentConfiguration(mCurrentRobotId, port); + const PortInfo &port = box->property("port").value(); + const DeviceInfo &device = currentConfiguration(mCurrentRobotId, port); if (device.isNull()) { box->setCurrentIndex(0); } else {