summaryrefslogtreecommitdiff
path: root/sc/source/core/tool/scmatrix.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/source/core/tool/scmatrix.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/source/core/tool/scmatrix.cxx')
-rw-r--r--sc/source/core/tool/scmatrix.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index c0078b5f8839..19d4b62394b6 100644
--- a/sc/source/core/tool/scmatrix.cxx
+++ b/sc/source/core/tool/scmatrix.cxx
@@ -361,7 +361,7 @@ static size_t GetElementsMax( size_t nMemory )
// With 1GB that's ~85M elements, or 85 whole columns.
constexpr size_t nElemMax = nMemMax / nPerElem;
// With MAXROWCOUNT==1048576 and 128 columns => 128M elements, 1.5GB
- constexpr size_t nArbitraryLimit = (size_t)MAXROWCOUNT * 128;
+ constexpr size_t nArbitraryLimit = size_t(MAXROWCOUNT) * 128;
// With the constant 1GB from above that's the actual value.
return nElemMax < nArbitraryLimit ? nElemMax : nArbitraryLimit;
}
@@ -1645,7 +1645,7 @@ inline double evaluate( double fVal, ScQueryOp eOp )
;
}
- SAL_WARN("sc.core", "evaluate: unhandled comparison operator: " << (int)eOp);
+ SAL_WARN("sc.core", "evaluate: unhandled comparison operator: " << static_cast<int>(eOp));
return CreateDoubleError( FormulaError::UnknownState);
}
@@ -3319,7 +3319,7 @@ public:
TRet operator()(bool bVal) const
{
- return maOp((double)bVal, mfVal);
+ return maOp(static_cast<double>(bVal), mfVal);
}
double operator()(const svl::SharedString& rStr) const