diff options
author | Andre Hartmann <aha_1980@gmx.de> | 2017-04-11 21:39:32 +0200 |
---|---|---|
committer | André Hartmann <aha_1980@gmx.de> | 2017-04-12 12:28:32 +0000 |
commit | 7785e07d399a89e023b79fc70a16572efb625f0c (patch) | |
tree | 501135ac2ef70c060098aa653f361573534837e8 /src/plugins/canbus/vectorcan | |
parent | 4f1b5f46dc6d258426e55518ca099141107ae75e (diff) |
VectorCAN: Un-wrap medium long lines
All lines are still shorter than 100 chars and even
shorter as the longest line in this file.
Change-Id: I227b13f78b3b7628287729f40ffec7bfa06231db
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src/plugins/canbus/vectorcan')
-rw-r--r-- | src/plugins/canbus/vectorcan/vectorcanbackend.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/plugins/canbus/vectorcan/vectorcanbackend.cpp b/src/plugins/canbus/vectorcan/vectorcanbackend.cpp index c1d46f0..289eaea 100644 --- a/src/plugins/canbus/vectorcan/vectorcanbackend.cpp +++ b/src/plugins/canbus/vectorcan/vectorcanbackend.cpp @@ -170,8 +170,7 @@ bool VectorCanBackendPrivate::open() XL_INTERFACE_VERSION, XL_BUS_TYPE_CAN); if (Q_UNLIKELY(status != XL_SUCCESS || portHandle == XL_INVALID_PORTHANDLE)) { - q->setError(systemErrorString(status), - QCanBusDevice::ConnectionError); + q->setError(systemErrorString(status), QCanBusDevice::ConnectionError); return false; } } @@ -180,8 +179,7 @@ bool VectorCanBackendPrivate::open() const XLstatus status = ::xlActivateChannel(portHandle, channelMask, XL_BUS_TYPE_CAN, XL_ACTIVATE_RESET_CLOCK); if (Q_UNLIKELY(status != XL_SUCCESS)) { - q->setError(systemErrorString(status), - QCanBusDevice::CanBusError::ConnectionError); + q->setError(systemErrorString(status), QCanBusDevice::CanBusError::ConnectionError); return false; } } @@ -190,8 +188,7 @@ bool VectorCanBackendPrivate::open() const int queueLevel = 1; const XLstatus status = ::xlSetNotification(portHandle, &readHandle, queueLevel); if (Q_UNLIKELY(status != XL_SUCCESS)) { - q->setError(systemErrorString(status), - QCanBusDevice::ConnectionError); + q->setError(systemErrorString(status), QCanBusDevice::ConnectionError); return false; } } @@ -217,16 +214,14 @@ void VectorCanBackendPrivate::close() { const XLstatus status = ::xlDeactivateChannel(portHandle, channelMask); if (Q_UNLIKELY(status != XL_SUCCESS)) { - q->setError(systemErrorString(status), - QCanBusDevice::CanBusError::ConnectionError); + q->setError(systemErrorString(status), QCanBusDevice::CanBusError::ConnectionError); } } { const XLstatus status = ::xlClosePort(portHandle); if (Q_UNLIKELY(status != XL_SUCCESS)) { - q->setError(systemErrorString(status), - QCanBusDevice::ConnectionError); + q->setError(systemErrorString(status), QCanBusDevice::ConnectionError); } } |