summaryrefslogtreecommitdiff
path: root/chart2/source/model
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-06-02 09:38:49 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-06-02 14:11:14 +0200
commitbee7a82ae5004874fc5fb343f0e15ab7476aa909 (patch)
treedc90d57718da26f650b243d26a9923d41ae284cb /chart2/source/model
parent620cf04907360ce39a03dc2b9f97ac437cdf9a8e (diff)
A simpler way to avoid MSVC warning C4018 "signed/unsigned mismatch"
Change-Id: I0e6418598cd446dd541708fc91145e5f47d14a46 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135289 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'chart2/source/model')
-rw-r--r--chart2/source/model/template/StockDataInterpreter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/model/template/StockDataInterpreter.cxx b/chart2/source/model/template/StockDataInterpreter.cxx
index d0d950b9a6a8..24072f7184bf 100644
--- a/chart2/source/model/template/StockDataInterpreter.cxx
+++ b/chart2/source/model/template/StockDataInterpreter.cxx
@@ -274,7 +274,7 @@ bool StockDataInterpreter::isDataCompatible(
( eVar == StockChartTypeTemplate::StockVariant::VolumeOpen ));
// 1. correct number of sub-types
- if( static_cast<sal_Int32>(aInterpretedData.Series.size()) < (bHasVolume ? 2 : 1 ))
+ if( aInterpretedData.Series.size() < (bHasVolume ? 2U : 1U ))
return false;
// 2. a. volume -- use default check
@@ -289,7 +289,7 @@ bool StockDataInterpreter::isDataCompatible(
// 2. b. candlestick
{
- OSL_ASSERT( static_cast<sal_Int32>(aInterpretedData.Series.size()) > (bHasVolume ? 1 : 0));
+ OSL_ASSERT( aInterpretedData.Series.size() > (bHasVolume ? 1U : 0U));
const std::vector< rtl::Reference< DataSeries > > & aSeries = aInterpretedData.Series[(bHasVolume ? 1 : 0)];
if(aSeries.empty())
return false;