summaryrefslogtreecommitdiffstats
path: root/core/devicedetails.cpp
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2016-09-20 21:30:18 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-01-17 09:15:50 -0800
commite1ee577c4fc693a4cfe948ab5ae02ab1af44edfa (patch)
tree83f53d98322917d3b156154640f039bc73f3a661 /core/devicedetails.cpp
parentfe5f15bdc53da12f1bed1a67e2f566746ba1d127 (diff)
downloadsubsurface-e1ee577c4fc693a4cfe948ab5ae02ab1af44edfa.tar.gz
Make event string translation when downloading from libdivecomputer more obvious
We had hardcoded the exact translation of the event numbers. They haven't changed (although we did have what appears to be a spurious entry for "non stop time" at the end that libdivecomputer doesn't have an enum for). Instead, use an explicit array index initializer array, so that it's obvious that the two match up (and if the sample event numbers ever change, we should cope with it gracefully). Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'core/devicedetails.cpp')
0 files changed, 0 insertions, 0 deletions