chart2/source/model/template/StockDataInterpreter.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit bee7a82ae5004874fc5fb343f0e15ab7476aa909 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Jun 2 09:38:49 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Jun 2 14:11:14 2022 +0200 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 <sberg...@redhat.com> 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;