summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2018-02-22 21:28:14 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-02-24 11:45:17 -0800
commit4d377926e03e11da62e57152ccf35039e29087a6 (patch)
tree7b5aff24829956f8f365742adef8b47a74641f11
parent862e121532f2b3bc001329c3965442ddaf144839 (diff)
downloadsubsurface-4d377926e03e11da62e57152ccf35039e29087a6.tar.gz
Whitespace cleanup in core/divelogexportlogic.cpp
Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
-rw-r--r--core/divelogexportlogic.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/divelogexportlogic.cpp b/core/divelogexportlogic.cpp
index 017689568..5df24dce2 100644
--- a/core/divelogexportlogic.cpp
+++ b/core/divelogexportlogic.cpp
@@ -99,15 +99,15 @@ static void exportHTMLstatistics(const QString filename, struct htmlExportSettin
out << "\"AVG_SAC\":\"" << get_volume_string(stats_yearly[i].avg_sac) << "\",";
out << "\"MIN_SAC\":\"" << get_volume_string(stats_yearly[i].min_sac) << "\",";
out << "\"MAX_SAC\":\"" << get_volume_string(stats_yearly[i].max_sac) << "\",";
- if ( stats_yearly[i].combined_count ) {
+ if (stats_yearly[i].combined_count) {
temperature_t avg_temp;
avg_temp.mkelvin = stats_yearly[i].combined_temp.mkelvin / stats_yearly[i].combined_count;
out << "\"AVG_TEMP\":\"" << get_temperature_string(avg_temp) << "\",";
} else {
out << "\"AVG_TEMP\":\"0.0\",";
}
- out << "\"MIN_TEMP\":\"" << ( stats_yearly[i].min_temp.mkelvin == 0 ? 0 : get_temperature_string(stats_yearly[i].min_temp)) << "\",";
- out << "\"MAX_TEMP\":\"" << ( stats_yearly[i].max_temp.mkelvin == 0 ? 0 : get_temperature_string(stats_yearly[i].max_temp)) << "\",";
+ out << "\"MIN_TEMP\":\"" << (stats_yearly[i].min_temp.mkelvin == 0 ? 0 : get_temperature_string(stats_yearly[i].min_temp)) << "\",";
+ out << "\"MAX_TEMP\":\"" << (stats_yearly[i].max_temp.mkelvin == 0 ? 0 : get_temperature_string(stats_yearly[i].max_temp)) << "\",";
out << "},";
total_stats.selection_size += stats_yearly[i].selection_size;
total_stats.total_time.seconds += stats_yearly[i].total_time.seconds;