Merge pull request #82 from AgnosticPope/master
Fix Compile/build on Ubuntu 14.04
This commit is contained in:
@@ -485,7 +485,7 @@ void ConnectionWindow::handleRevert()
|
||||
bool ConnectionWindow::isSocketCanAvailable()
|
||||
{
|
||||
#ifdef Q_OS_LINUX
|
||||
foreach (const QByteArray &backend, QCanBus::instance()->plugins()) {
|
||||
for (const auto &backend : QCanBus::instance()->plugins()) {
|
||||
if (backend == "socketcan")
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user