summaryrefslogtreecommitdiffstats
path: root/core/configuredivecomputer.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-10-04 21:00:21 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-06 10:38:45 -0700
commit8af40025b02152586aeaeeba166ff9e597a2702d (patch)
tree4c5c703b2bde54db4d03d016e772b2300985fabc /core/configuredivecomputer.h
parenta3e990dfd5a17ab541e3ab89a21b80d8bc48bb6e (diff)
downloadsubsurface-8af40025b02152586aeaeeba166ff9e597a2702d.tar.gz
cleanup: use pointer-to-function connect() in ConfigureDiveComputer
This version is compile-time checked and therefore less risky with respect to refactoring. Since the same three signals were connect()ed for three different threads-objects, do this in a new function. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/configuredivecomputer.h')
-rw-r--r--core/configuredivecomputer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/configuredivecomputer.h b/core/configuredivecomputer.h
index 72661f00a..1bdc03549 100644
--- a/core/configuredivecomputer.h
+++ b/core/configuredivecomputer.h
@@ -55,6 +55,7 @@ private:
WriteSettingsThread *writeThread;
ResetSettingsThread *resetThread;
FirmwareUpdateThread *firmwareThread;
+ void connectThreadSignals(DeviceThread *thread);
void setState(states newState);
private
slots: