From c7f0e65b12ec99804db60ea9c2439a0a6ade4367 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 25 Jul 2018 18:43:55 -0700 Subject: Whitespace cleanup core divecomputer handling Not entirely script based because of two odd issues where the script creates bogus indentation. Signed-off-by: Dirk Hohndel --- core/downloadfromdcthread.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'core/downloadfromdcthread.cpp') diff --git a/core/downloadfromdcthread.cpp b/core/downloadfromdcthread.cpp index 17bcb9647..250405f2f 100644 --- a/core/downloadfromdcthread.cpp +++ b/core/downloadfromdcthread.cpp @@ -7,7 +7,7 @@ QStringList vendorList; QHash productList; -static QHash mobileProductList; // BT, BLE or FTDI supported DCs for mobile +static QHash mobileProductList; // BT, BLE or FTDI supported DCs for mobile QMap descriptorLookup; ConnectionListModel connectionListModel; @@ -30,7 +30,7 @@ void DownloadThread::run() { auto internalData = m_data->internalData(); internalData->descriptor = descriptorLookup[m_data->vendor() + m_data->product()]; - internalData->download_table = &downloadTable; + internalData->download_table = &downloadTable; #if defined(Q_OS_ANDROID) // on Android we either use BT or we download via FTDI cable if (!internalData->bluetooth_mode) @@ -201,7 +201,7 @@ void show_computer_list() dc_descriptor_t *descriptor = descriptorLookup[vendor + product]; unsigned int transport = dc_descriptor_get_transports(descriptor) & transportMask; QString transportString = getTransportString(transport); - msg += product + " (" + transportString +"), "; + msg += product + " (" + transportString + "), "; } msg.chop(2); qDebug() << msg; @@ -265,7 +265,7 @@ int DCDeviceData::getMatchingAddress(const QString &vendor, const QString &produ return -1; } -DCDeviceData * DownloadThread::data() +DCDeviceData *DownloadThread::data() { return m_data; } @@ -320,17 +320,17 @@ int DCDeviceData::diveId() const return data.diveid; } -void DCDeviceData::setVendor(const QString& vendor) +void DCDeviceData::setVendor(const QString &vendor) { data.vendor = copy_qstring(vendor); } -void DCDeviceData::setProduct(const QString& product) +void DCDeviceData::setProduct(const QString &product) { data.product = copy_qstring(product); } -void DCDeviceData::setDevName(const QString& devName) +void DCDeviceData::setDevName(const QString &devName) { // This is a workaround for bug #1002. A string of the form "devicename (deviceaddress)" // or "deviceaddress (devicename)" may have found its way into the preferences. @@ -351,7 +351,7 @@ void DCDeviceData::setDevName(const QString& devName) data.devname = copy_qstring(devName); } -void DCDeviceData::setDevBluetoothName(const QString& name) +void DCDeviceData::setDevBluetoothName(const QString &name) { m_devBluetoothName = name; } @@ -402,7 +402,7 @@ bool DCDeviceData::saveLog() const } -device_data_t* DCDeviceData::internalData() +device_data_t *DCDeviceData::internalData() { return &data; } -- cgit v1.2.3-70-g09d2