mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cleanup: don't allocate device_data_t structure
These can all just be local objects. Also, don't overwrite them with 0. We later want to convert the string to std::string, where this would be very sketchy. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
b74703b61d
commit
0915c1ce43
4 changed files with 32 additions and 37 deletions
|
|
@ -202,7 +202,6 @@ void show_computer_list()
|
|||
|
||||
DCDeviceData::DCDeviceData()
|
||||
{
|
||||
memset(&data, 0, sizeof(data));
|
||||
data.log = nullptr;
|
||||
data.diveid = 0;
|
||||
#if defined(BT_SUPPORT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue