summaryrefslogtreecommitdiffstats
path: root/core/profile.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-06-27 07:52:15 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-11-09 19:19:04 +0100
commitff653f721c01b98587236c0b4e0cf662cb3a33a6 (patch)
tree1f294f60346ba6b1320ed4327cf218b1589e557f /core/profile.c
parent11467fa326896934a299712810b74aef6a373c6f (diff)
downloadsubsurface-ff653f721c01b98587236c0b4e0cf662cb3a33a6.tar.gz
Cylinders: dynamically allocate cylinder arrays
When keeping track of cylinder related data, the code was using static arrays of MAX_CYLINDERS length. If we want to use dynamically sized cylinder arrays, these have to be dynamically allocated. In C++ code, this is trivial: simply replace the C-style arrays by std::vector<>. Don't use QVector, as no reference counting or COW semantics are needed here. These are purely local and unshared arrays. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/profile.c')
0 files changed, 0 insertions, 0 deletions