mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
import: turn C-string in device_data_t into std::strings
It was never clear what was a pointer to a static string from libdivecomputer and what was allocated. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
0915c1ce43
commit
01306224ff
15 changed files with 120 additions and 129 deletions
|
@ -425,8 +425,7 @@ void DownloadFromDCWidget::on_downloadCancelRetryButton_clicked()
|
|||
data->setDevName(btDeviceSelectionDialog->getSelectedDeviceAddress());
|
||||
data->setDevBluetoothName(btDeviceSelectionDialog->getSelectedDeviceName());
|
||||
} else {
|
||||
QString name, address;
|
||||
address = extractBluetoothNameAddress(ui.device->currentText(), name);
|
||||
auto [address, name] = extractBluetoothNameAddress(ui.device->currentText());
|
||||
data->setDevName(address);
|
||||
data->setDevBluetoothName(name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue