From 3d78c2d0b503e6475dcc9a099bfce65a9bb1c79c Mon Sep 17 00:00:00 2001 From: Paul Colby Date: Tue, 29 Oct 2024 20:45:16 +1100 Subject: [PATCH] Default another virtual destructor --- include/qtpokit/statusservice.h | 2 +- src/lib/i18n/en_AU.ts | 52 ++++++++++++++++----------------- src/lib/i18n/en_GB.ts | 52 ++++++++++++++++----------------- src/lib/i18n/en_US.ts | 52 ++++++++++++++++----------------- src/lib/statusservice.cpp | 8 ----- 5 files changed, 79 insertions(+), 87 deletions(-) diff --git a/include/qtpokit/statusservice.h b/include/qtpokit/statusservice.h index 870894e30..e16c90a21 100644 --- a/include/qtpokit/statusservice.h +++ b/include/qtpokit/statusservice.h @@ -141,7 +141,7 @@ class QTPOKIT_EXPORT StatusService : public AbstractPokitService static QString toString(const StatusService::ButtonStatus &status); StatusService(QLowEnergyController * const pokitDevice, QObject * parent = nullptr); - ~StatusService() override; + ~StatusService() = default; bool readCharacteristics() override; bool readDeviceCharacteristics(); diff --git a/src/lib/i18n/en_AU.ts b/src/lib/i18n/en_AU.ts index 137ed4ed8..c96067b95 100644 --- a/src/lib/i18n/en_AU.ts +++ b/src/lib/i18n/en_AU.ts @@ -1162,7 +1162,7 @@ StatusService - + Device name "%1" is too long (%2 > 11 bytes): 0x3 @@ -1170,127 +1170,127 @@ StatusServicePrivate - + Firmware version: - + Maximum voltage: - + Maximum current: - + Maximum resistance: - + Maximum sampling rate: - + Sampling buffer size: - + Capability mask: - + MAC address: - + Device status: %1 (%2) - + Battery voltage: %1 volts - + Battery status: %1 (%2) - + Switch position: %1 (%2) - + Charging status: %1 (%2) - + Torch status: %1 (%2) - + Button: %1 (%2) - + Found Status Service for a Pokit Meter device. - + Found Status Service for a Pokit Pro device. - + Device name: "%1" - + Flash LED characteristic is write-only, but somehow read - + Torch status: %1 (%2) - + Button status: %1 (%2) - + Unknown characteristic read for Status service - + Device Characteristics is read-only, but somehow written - + Status characteristic is read-only, but somehow written - + Unknown characteristic written for Status service diff --git a/src/lib/i18n/en_GB.ts b/src/lib/i18n/en_GB.ts index b6c89b925..d15ba29ca 100644 --- a/src/lib/i18n/en_GB.ts +++ b/src/lib/i18n/en_GB.ts @@ -1162,7 +1162,7 @@ StatusService - + Device name "%1" is too long (%2 > 11 bytes): 0x3 @@ -1170,127 +1170,127 @@ StatusServicePrivate - + Firmware version: - + Maximum voltage: - + Maximum current: - + Maximum resistance: - + Maximum sampling rate: - + Sampling buffer size: - + Capability mask: - + MAC address: - + Device status: %1 (%2) - + Battery voltage: %1 volts - + Battery status: %1 (%2) - + Switch position: %1 (%2) - + Charging status: %1 (%2) - + Torch status: %1 (%2) - + Button: %1 (%2) - + Found Status Service for a Pokit Meter device. - + Found Status Service for a Pokit Pro device. - + Device name: "%1" - + Flash LED characteristic is write-only, but somehow read - + Torch status: %1 (%2) - + Button status: %1 (%2) - + Unknown characteristic read for Status service - + Device Characteristics is read-only, but somehow written - + Status characteristic is read-only, but somehow written - + Unknown characteristic written for Status service diff --git a/src/lib/i18n/en_US.ts b/src/lib/i18n/en_US.ts index b4dc7c116..51228daa9 100644 --- a/src/lib/i18n/en_US.ts +++ b/src/lib/i18n/en_US.ts @@ -1162,7 +1162,7 @@ StatusService - + Device name "%1" is too long (%2 > 11 bytes): 0x3 @@ -1170,127 +1170,127 @@ StatusServicePrivate - + Firmware version: - + Maximum voltage: - + Maximum current: - + Maximum resistance: - + Maximum sampling rate: - + Sampling buffer size: - + Capability mask: - + MAC address: - + Device status: %1 (%2) - + Battery voltage: %1 volts - + Battery status: %1 (%2) - + Switch position: %1 (%2) - + Charging status: %1 (%2) - + Torch status: %1 (%2) - + Button: %1 (%2) - + Found Status Service for a Pokit Meter device. - + Found Status Service for a Pokit Pro device. - + Device name: "%1" - + Flash LED characteristic is write-only, but somehow read - + Torch status: %1 (%2) - + Button status: %1 (%2) - + Unknown characteristic read for Status service - + Device Characteristics is read-only, but somehow written - + Status characteristic is read-only, but somehow written - + Unknown characteristic written for Status service diff --git a/src/lib/statusservice.cpp b/src/lib/statusservice.cpp index a30be1b9e..1ab6a81b4 100644 --- a/src/lib/statusservice.cpp +++ b/src/lib/statusservice.cpp @@ -139,14 +139,6 @@ StatusService::StatusService( } /// \endcond -/*! - * Destroys this StatusService object. - */ -StatusService::~StatusService() -{ - -} - bool StatusService::readCharacteristics() { const bool r1 = readDeviceCharacteristics();