diff options
author | Joseph W. Joshua <joejoshw@gmail.com> | 2014-07-31 18:51:38 +0300 |
---|---|---|
committer | Thiago Macieira <thiago@macieira.org> | 2014-08-13 10:48:15 -0700 |
commit | 4e99382c96c71e5427a7f1ef011b04f0e560a1f6 (patch) | |
tree | 980b96d4133481a5d719d89f3bdc7c9ff56820fb /configuredivecomputer.h | |
parent | 24cb0b0496e8f593f22f3e1cd25b286ad8c7031f (diff) | |
download | subsurface-4e99382c96c71e5427a7f1ef011b04f0e560a1f6.tar.gz |
Improve on error reporting in the ConfigureDiveComputer class
This patch improves on the error reporting for the dive computer
configuration dialog to use config->lastError.
The previous code was using a different argument in each function,
which lacked uniformity.
Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
Signed-off-by: Thiago Macieira <thiago@macieira.org>
Diffstat (limited to 'configuredivecomputer.h')
-rw-r--r-- | configuredivecomputer.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configuredivecomputer.h b/configuredivecomputer.h index 0cd16d311..4522e9fbe 100644 --- a/configuredivecomputer.h +++ b/configuredivecomputer.h @@ -32,9 +32,9 @@ public: device_data_t *m_data; void saveDeviceDetails(DeviceDetails *details, device_data_t *data); void fetchDeviceDetails(); - bool saveXMLBackup(QString fileName, DeviceDetails *details, device_data_t *data, QString errorText); - bool restoreXMLBackup(QString fileName, DeviceDetails *details, QString errorText); - void startFirmwareUpdate(QString fileName, device_data_t *data, QString errorText); + bool saveXMLBackup(QString fileName, DeviceDetails *details, device_data_t *data); + bool restoreXMLBackup(QString fileName, DeviceDetails *details); + void startFirmwareUpdate(QString fileName, device_data_t *data); signals: void message(QString msg); void error(QString err); |