Mercurial > public > ostc4
diff Discovery/Inc/logbook.h @ 269:6e78137952af write-from-sim
cleanup: do not pass large struct by value
Passing a huge struct by value is poor practice. Simply pass it by reference.
Signed-off-by: Jan Mulder <jlmulder@xs4all.nl>
author | Jan Mulder <jlmulder@xs4all.nl> |
---|---|
date | Tue, 23 Apr 2019 21:03:24 +0200 |
parents | f23b9055436f |
children | 2e58a4094770 |
line wrap: on
line diff
--- a/Discovery/Inc/logbook.h Tue Apr 23 17:41:20 2019 +0200 +++ b/Discovery/Inc/logbook.h Tue Apr 23 21:03:24 2019 +0200 @@ -199,7 +199,7 @@ int8_t percentageHe; } SManualGas; -void logbook_writeSample(SDiveState state); +void logbook_writeSample(SDiveState *state); void logbook_initNewdiveProfile(const SDiveState* pInfo, SSettings* pSettings); void logbook_EndDive(void);