diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-06 10:58:12 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-07 17:50:51 +0300 |
commit | 97991e2b9fff4254c2b40417bf6d7496ba0d849f (patch) | |
tree | a2b9af681e9ac5e72e4846736df001f75f7cc788 /export-html.cpp | |
parent | 68fdc0b6f49c81cb61387b7d006807509280c9df (diff) | |
download | subsurface-97991e2b9fff4254c2b40417bf6d7496ba0d849f.tar.gz |
Statistics: remove global state / calculate only when needed
Statistics were calculated into global variables every time the
current dive was changed.
Calculate statistics only when needed and into a structure
provided by the caller.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'export-html.cpp')
-rw-r--r-- | export-html.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/export-html.cpp b/export-html.cpp index fecbb5235..4907a6bb6 100644 --- a/export-html.cpp +++ b/export-html.cpp @@ -49,13 +49,9 @@ int main(int argc, char **argv) // this should have set up the informational preferences - let's grab // the units from there - prefs.unit_system = git_prefs.unit_system; prefs.units = git_prefs.units; - // populate the statistics - process_all_dives(); - // now set up the export settings to create the HTML export struct htmlExportSetting hes; hes.themeFile = "sand.css"; |