diff options
Diffstat (limited to 'kspread/plugins/calculator/stats.cpp')
-rw-r--r-- | kspread/plugins/calculator/stats.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kspread/plugins/calculator/stats.cpp b/kspread/plugins/calculator/stats.cpp index 5413701b8..df7e1576b 100644 --- a/kspread/plugins/calculator/stats.cpp +++ b/kspread/plugins/calculator/stats.cpp @@ -31,8 +31,8 @@ KStats::KStats(){ - error_flag = FALSE; - data.setAutoDelete(TRUE); + error_flag = false; + data.setAutoDelete(true); } @@ -164,7 +164,7 @@ CALCAMNT KStats::median(){ bound = list.count(); if (bound == 0){ - error_flag = TRUE; + error_flag = true; return 0.0; } @@ -234,7 +234,7 @@ CALCAMNT KStats::mean(){ CALCAMNT result = 0.0; if(data.count() == 0){ - error_flag = TRUE; + error_flag = true; return 0.0; } @@ -253,7 +253,7 @@ CALCAMNT KStats::std(){ CALCAMNT result = 0.0; if(data.count() == 0){ - error_flag = TRUE; + error_flag = true; #ifdef DEBUG_STATS printf("set stats error\n"); @@ -283,7 +283,7 @@ CALCAMNT KStats::sample_std(){ CALCAMNT result = 0.0; if(data.count() < 2 ){ - error_flag = TRUE; + error_flag = true; return 0.0; } @@ -306,7 +306,7 @@ bool KStats::error(){ bool value; value = error_flag; - error_flag = FALSE; + error_flag = false; return value; |