From 5bc6f5d36c491b305f66a03c8400666ccda0b044 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sat, 3 Oct 2020 11:18:42 +0200 Subject: cleanup: make device code more consistent with core We keep track of device, i.e. distinct dive computers with id in the core. The corresponding code stuck out like a sore thumb. Firstly, because it is C++. But more importantly, because it used inconsistent nameing conventions. Notably it defined a "DiveComputerNode" when this is something very different from "struct dive_computer", the latter being the dive-computer related data of a single dive. Since the whole thing is defined in "device.h" and the function to create such an entry is called "create_device_node", call the structure "device". Use snake_case for consistency with the other core structures. Moreover, call the collection of devices "device_table" in analogy with "dive_table", etc. Overall, this should make the core code more consistent style-wise. Signed-off-by: Berthold Stoeger --- qt-models/divecomputermodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-models/divecomputermodel.h') diff --git a/qt-models/divecomputermodel.h b/qt-models/divecomputermodel.h index 8c2373695..ab352513c 100644 --- a/qt-models/divecomputermodel.h +++ b/qt-models/divecomputermodel.h @@ -26,7 +26,7 @@ slots: void remove(const QModelIndex &index); private: - QVector dcs; + QVector dcs; }; #endif -- cgit v1.2.3-70-g09d2