Fix compile
This commit is contained in:
@@ -485,7 +485,7 @@ void ConnectionWindow::handleRevert()
|
|||||||
bool ConnectionWindow::isSocketCanAvailable()
|
bool ConnectionWindow::isSocketCanAvailable()
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_LINUX
|
#ifdef Q_OS_LINUX
|
||||||
foreach (const QByteArray &backend, QCanBus::instance()->plugins()) {
|
for (const auto &backend : QCanBus::instance()->plugins()) {
|
||||||
if (backend == "socketcan")
|
if (backend == "socketcan")
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user