summaryrefslogtreecommitdiffstats
path: root/tests/testprofile.cpp
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2019-04-06 11:29:42 -1000
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-04-07 20:11:32 +0200
commitbaeb0ba28029d1e9b348ac3933eaedecf3e15e81 (patch)
treeab654369e576d409a8350152f48971eb89c7008e /tests/testprofile.cpp
parent3184830f513f7928f3d97cfb14b810d80c3bceb4 (diff)
downloadsubsurface-baeb0ba28029d1e9b348ac3933eaedecf3e15e81.tar.gz
Merge extra_data list when merging two dives of the same dive computer
When merging two dives into a longer one, merge the dive computer extra_data list too. We just pick all the extra-data (but avoid entirely duplicate key/value entries). Note that this can cause confusing extra-data, in that both dives migth have things like "battery percentage at beginning/end of dive" keys, and if the values are different, you'll now get *both* of those values, but that's better than randomly just taking one of them. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tests/testprofile.cpp')
0 files changed, 0 insertions, 0 deletions