summaryrefslogtreecommitdiff
path: root/sc/qa/unit/datatransformation_test.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-01-12 20:17:13 +0100
committerStephan Bergmann <sbergman@redhat.com>2018-01-12 20:17:13 +0100
commit681783c9adf85bde36348f11c03d3a483bf545be (patch)
treea5b8a4eab1695275b3d2516738b43c0d3f6ee158 /sc/qa/unit/datatransformation_test.cxx
parentfe45359ab818659186672a0ca05979b589dedbfc (diff)
More loplugin:cstylecast: sc
auto-rewrite with <https://gerrit.libreoffice.org/#/c/47798/> "Enable loplugin:cstylecast for some more cases" plus solenv/clang-format/reformat-formatted-files Change-Id: I987ac3a6d062600a5e21c3462c70595dfaa51796
Diffstat (limited to 'sc/qa/unit/datatransformation_test.cxx')
-rw-r--r--sc/qa/unit/datatransformation_test.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/datatransformation_test.cxx b/sc/qa/unit/datatransformation_test.cxx
index f519c61bdc64..4639d4e087d5 100644
--- a/sc/qa/unit/datatransformation_test.cxx
+++ b/sc/qa/unit/datatransformation_test.cxx
@@ -63,11 +63,11 @@ void ScDataTransformationTest::testColumnRemove()
double nVal = m_pDoc->GetValue(nCol, nRow, 0);
if (nCol < 5)
{
- ASSERT_DOUBLES_EQUAL((double)(nCol)*nRow, nVal);
+ ASSERT_DOUBLES_EQUAL(static_cast<double>(nCol)*nRow, nVal);
}
else
{
- ASSERT_DOUBLES_EQUAL((double)(nCol+1)*nRow, nVal);
+ ASSERT_DOUBLES_EQUAL(static_cast<double>(nCol+1)*nRow, nVal);
}
}
}