summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2022-05-16 15:58:20 +0900
committerTomaž Vajngerl <quikee@gmail.com>2022-05-19 01:53:42 +0200
commita353f633ec029fc5c7cdc8062aefb6f979265a9e (patch)
tree460aa4a4da38524e60c8136ff04ba8a599a29cbe /chart2
parent2e86718626a07e1656661df3ad69a64848bf4614 (diff)
chart2: simplify sheet indices constants for trendline calc. test
Change-Id: I3ec16c33446d20b6d795c5950ceb882ff78fb029 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134382 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/qa/extras/chart2_trendcalculators.cxx18
1 files changed, 6 insertions, 12 deletions
diff --git a/chart2/qa/extras/chart2_trendcalculators.cxx b/chart2/qa/extras/chart2_trendcalculators.cxx
index 309df9f2bfb4..6562bb835cd8 100644
--- a/chart2/qa/extras/chart2_trendcalculators.cxx
+++ b/chart2/qa/extras/chart2_trendcalculators.cxx
@@ -14,18 +14,12 @@
// Define the index of sheets in the test document
-#define SHEET_POTENTIAL1 0
-#define SHEET_POTENTIAL2 ( SHEET_POTENTIAL1 + 1)
-#define SHEET_POTENTIAL_LAST ( SHEET_POTENTIAL2 )
-
-#define SHEET_LINEAR1 ( SHEET_POTENTIAL_LAST + 1 )
-#define SHEET_LINEAR_LAST ( SHEET_LINEAR1 )
-
-#define SHEET_POLYNOMIAL1 ( SHEET_LINEAR_LAST + 1 )
-#define SHEET_POLYNOMIAL_LAST ( SHEET_POLYNOMIAL1 )
-
-#define SHEET_EXPONENTIAL1 ( SHEET_POLYNOMIAL_LAST + 1 )
-#define SHEET_EXPONENTIAL2 ( SHEET_EXPONENTIAL1 + 1 )
+constexpr sal_Int32 SHEET_POTENTIAL1 = 0;
+constexpr sal_Int32 SHEET_POTENTIAL2 = 1;
+constexpr sal_Int32 SHEET_LINEAR1 = 2;
+constexpr sal_Int32 SHEET_POLYNOMIAL1 = 3;
+constexpr sal_Int32 SHEET_EXPONENTIAL1 = 4;
+constexpr sal_Int32 SHEET_EXPONENTIAL2 = 5;
class Chart2TrendCalculators : public ChartTest
{