diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:17:13 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-12 20:17:13 +0100 |
commit | 681783c9adf85bde36348f11c03d3a483bf545be (patch) | |
tree | a5b8a4eab1695275b3d2516738b43c0d3f6ee158 /sc/qa/unit/ucalc_sort.cxx | |
parent | fe45359ab818659186672a0ca05979b589dedbfc (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/ucalc_sort.cxx')
-rw-r--r-- | sc/qa/unit/ucalc_sort.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc_sort.cxx b/sc/qa/unit/ucalc_sort.cxx index db91442be673..922856bcae96 100644 --- a/sc/qa/unit/ucalc_sort.cxx +++ b/sc/qa/unit/ucalc_sort.cxx @@ -486,7 +486,7 @@ void Test::testSortInFormulaGroup() m_pDoc->InsertTab(0, "sorttest"); - for ( SCROW i = 0; i < (SCROW) SAL_N_ELEMENTS( aEntries ); ++i ) + for ( SCROW i = 0; i < SCROW(SAL_N_ELEMENTS( aEntries )); ++i ) m_pDoc->SetString( aEntries[i].nCol, aEntries[i].nRow, 0, OUString::createFromAscii( aEntries[i].pData) ); @@ -518,7 +518,7 @@ void Test::testSortInFormulaGroup() { 0, 9, 104.0 }, { 1, 9, 104.0 }, }; - for ( SCROW i = 0; i < (SCROW) SAL_N_ELEMENTS( aEntries ); ++i ) + for ( SCROW i = 0; i < SCROW(SAL_N_ELEMENTS( aEntries )); ++i ) { double val = m_pDoc->GetValue( aEntries[i].nCol, aEntries[i].nRow, 0 ); // fprintf(stderr, "value at %d %d is %g = %g\n", |