diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-09-18 10:55:29 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-09-19 14:43:54 -0700 |
commit | 92deb7aa70e79db43b143c965c6386a6b06b4a2b (patch) | |
tree | 396c1a05ad7385c49084d4103425fd7fa60a9a8a /desktop-widgets/simplewidgets.cpp | |
parent | 95e2c29827f6d1fdf52af67b91e89c104463cf26 (diff) | |
download | subsurface-92deb7aa70e79db43b143c965c6386a6b06b4a2b.tar.gz |
Cleanup: make surface sample in merge_one_sample() non-static
The merge_one_sample() function adds a sample to the destination
dive if dives are merged. For long periods between samples at surface
depths, it adds a surface interval.
To decrease the number of global objects, make the sample structure
non-static. Of course, initialization of an on-stack structure is
slower. Therefore move it into the corresponding if. Thus, the
structure will be initialized only once per surface-interval.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/simplewidgets.cpp')
0 files changed, 0 insertions, 0 deletions