summaryrefslogtreecommitdiff
path: root/chart2/source/tools/CommonConverters.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/tools/CommonConverters.cxx')
-rw-r--r--chart2/source/tools/CommonConverters.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/chart2/source/tools/CommonConverters.cxx b/chart2/source/tools/CommonConverters.cxx
index e10c22cc7d55..6330d2137edd 100644
--- a/chart2/source/tools/CommonConverters.cxx
+++ b/chart2/source/tools/CommonConverters.cxx
@@ -29,6 +29,7 @@
#include <basegfx/matrix/b3dhommatrix.hxx>
#include <basegfx/polygon/b2dpolygontools.hxx>
+#include <cstddef>
#include <limits>
namespace chart
@@ -268,15 +269,15 @@ void addPolygon( std::vector<std::vector<css::drawing::Position3D>>& rRet, const
void appendPoly( std::vector<std::vector<css::drawing::Position3D>>& rRet, const std::vector<std::vector<css::drawing::Position3D>>& rAdd )
{
- sal_Int32 nOuterCount = std::max( rRet.size(), rAdd.size() );
+ std::size_t nOuterCount = std::max( rRet.size(), rAdd.size() );
rRet.resize(nOuterCount);
auto pSequence = rRet.data();
- for( sal_Int32 nOuter=0;nOuter<nOuterCount;nOuter++ )
+ for( std::size_t nOuter=0;nOuter<nOuterCount;nOuter++ )
{
sal_Int32 nOldPointCount = rRet[nOuter].size();
sal_Int32 nAddPointCount = 0;
- if(nOuter<static_cast<sal_Int32>(rAdd.size()))
+ if(nOuter<rAdd.size())
nAddPointCount = rAdd[nOuter].size();
if(!nAddPointCount)
continue;
@@ -378,7 +379,7 @@ drawing::PointSequenceSequence PolyToPointSequence(
aRet.realloc( rPolyPolygon.size() );
auto pRet = aRet.getArray();
- for(sal_Int32 nN = 0; nN < static_cast<sal_Int32>(rPolyPolygon.size()); nN++)
+ for(std::size_t nN = 0; nN < rPolyPolygon.size(); nN++)
{
sal_Int32 nInnerLength = rPolyPolygon[nN].size();
pRet[nN].realloc( nInnerLength );