diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2021-01-02 18:45:10 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-10 15:57:39 -0800 |
commit | ea88f4729dcc6ec6df0dc25cb54494d07774dca8 (patch) | |
tree | efda582ba03f1c9f90b231036391fda3e097f81f /desktop-widgets/tab-widgets | |
parent | 975c123a30de95eafd9b3c2ce2a625a1d05a79dc (diff) | |
download | subsurface-ea88f4729dcc6ec6df0dc25cb54494d07774dca8.tar.gz |
profile: set model of profile items on construction
The profile items had a "setModel()" function to set
the DivePlotDataModel post creation. The model is never
changed. It does however mean that the model might be
null in a short period between construction and setting
the model.
To simplify reasoning about this code, set the model
in the constructor. To drive the point home that the
can never change and cannot be null, turn it into a
reference.
Yes, this is gratuitous bike-shedding, but it helps
me analysis the code.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets')
0 files changed, 0 insertions, 0 deletions