mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Cleanup: constify get_units()
get_units() returns a pointer to the units struct in the preferences. Callers should not modify the preferences via this struct, therefore make the return value point to const. This is a small step in constifying the global preferences structure. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
2635673c3a
commit
2bd0c2143e
5 changed files with 9 additions and 9 deletions
|
@ -232,7 +232,7 @@ void DiveLogExportDialog::export_TeX(const char *filename, const bool selected_o
|
|||
FILE *f;
|
||||
QDir texdir = QFileInfo(filename).dir();
|
||||
struct dive *dive;
|
||||
struct units *units = get_units();
|
||||
const struct units *units = get_units();
|
||||
const char *unit;
|
||||
int i;
|
||||
bool need_pagebreak = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue