diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-12-12 13:28:36 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-17 13:03:56 -0800 |
commit | 0cbb4487401b749476e939db20b842e04099bfa8 (patch) | |
tree | 2627229973b9d9cbb25c83953231e29fe0f1cd91 /xslt/xml2csv.xslt | |
parent | 7bdd968e05a3ec11ab9f207e7bd32ff7bffc34a8 (diff) | |
download | subsurface-0cbb4487401b749476e939db20b842e04099bfa8.tar.gz |
cleanup: make templateOptions and printOptions reference types
These two structs describe options used during printing.
They are passed through numerous classes as pointer. In this
case, reference semantics are preferred, as references:
- can never be null
- can not change during their lifetime
This not only helps the compiler, as it can optimize away null
checks, but also your fellow coder. Moreover, it prevents
unintentional creation of uninitialized references: one can't
create an instance of a class without initializing a reference
member. It does not prevent references from going dangling.
However, pointers have the same disadvantage.
Contains a few whitespace cleanups.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'xslt/xml2csv.xslt')
0 files changed, 0 insertions, 0 deletions