mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: remove eplicit constructors and unused member variable
Remove the explicit constructor in DiveComputerNode: Just use classical C-style struct initialization. Moreover, remove the empty constructor and destructor of DiveComputerList. The variable DiveComputerList::dcWorkingMap was unused. Remove. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b0cc416954
commit
8e8cd7a8d9
2 changed files with 1 additions and 15 deletions
|
@ -5,14 +5,6 @@
|
|||
|
||||
DiveComputerList dcList;
|
||||
|
||||
DiveComputerList::DiveComputerList()
|
||||
{
|
||||
}
|
||||
|
||||
DiveComputerList::~DiveComputerList()
|
||||
{
|
||||
}
|
||||
|
||||
bool DiveComputerNode::operator==(const DiveComputerNode &a) const
|
||||
{
|
||||
return model == a.model &&
|
||||
|
@ -89,8 +81,7 @@ void DiveComputerList::addDC(QString m, uint32_t d, QString n, QString s, QStrin
|
|||
dcMap.remove(m, *existNode);
|
||||
}
|
||||
|
||||
DiveComputerNode newNode(m, d, s, f, n);
|
||||
dcMap.insert(m, newNode);
|
||||
dcMap.insert(m, { m, d, s, f, n });
|
||||
}
|
||||
|
||||
extern "C" void create_device_node(const char *model, uint32_t deviceid, const char *serial, const char *firmware, const char *nickname)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue