mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
core: simplify default initialization of struct sample
Since the units got default constructors, we don't have to manually initialize them. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
27dbdd35c6
commit
af6201f89c
2 changed files with 8 additions and 28 deletions
|
@ -2,27 +2,7 @@
|
|||
|
||||
#include "sample.h"
|
||||
|
||||
sample::sample() :
|
||||
time({ 0 }),
|
||||
stoptime({ 0 }),
|
||||
ndl({ -1 }),
|
||||
tts({ 0 }),
|
||||
rbt({ 0 }),
|
||||
depth({ 0 }),
|
||||
stopdepth({ 0 }),
|
||||
temperature({ 0 }),
|
||||
pressure { { 0 }, { 0 } },
|
||||
setpoint({ 0 }),
|
||||
o2sensor { { 0 }, { 0 }, { 0 }, { 0 }, { 0 }, { 0 } },
|
||||
bearing({ -1 }),
|
||||
sensor { 0, 0 },
|
||||
cns(0),
|
||||
heartbeat(0),
|
||||
sac({ 0 }),
|
||||
in_deco(false),
|
||||
manually_entered(false)
|
||||
{
|
||||
}
|
||||
sample::sample() = default;
|
||||
|
||||
/*
|
||||
* Adding a cylinder pressure sample field is not quite as trivial as it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue