mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: use divelog struct in downloader code
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
a2845ece82
commit
b56b7abcf5
11 changed files with 64 additions and 65 deletions
|
@ -51,6 +51,16 @@ divelog::divelog(divelog &&log) :
|
|||
move_dive_site_table(log.sites, sites);
|
||||
}
|
||||
|
||||
struct divelog &divelog::operator=(divelog &&log)
|
||||
{
|
||||
move_dive_table(log.dives, dives);
|
||||
move_trip_table(log.trips, trips);
|
||||
move_dive_site_table(log.sites, sites);
|
||||
devices = std::move(log.devices);
|
||||
filter_presets = std::move(log.filter_presets);
|
||||
return *this;
|
||||
}
|
||||
|
||||
void divelog::clear()
|
||||
{
|
||||
while (dives->nr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue