diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-03-28 18:11:49 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-04-03 19:23:45 +0900 |
commit | 0bd9d5459891e6fb17ee6802878f85e217cb9f54 (patch) | |
tree | 962f6ea26d1fab041fe3476fbbd64132ab8ada1b /kspread/plugins/calculator/stats.cpp | |
parent | cb258b7e39ffa5662b57e7d9006e69172a378d7e (diff) | |
download | koffice-r14.1.4.tar.gz koffice-r14.1.4.zip |
Replace TRUE/FALSE with boolean values true/falser14.1.4
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit cf85b9c285a2b9baa87c9d0cb9d683b48e82a475)
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; |