Commit 01b94086 authored by Miklos Vajna's avatar Miklos Vajna

Fix too small loop variables

These loop variables had narrower type than the iteration's upper bound.

Change-Id: Iffe22c065b450b3195e3c1fbf893a24939feec20
parent 4af124c8
......@@ -652,7 +652,7 @@ void PMDCollector::fillOutputShapesByPage_TwoSided(PageShapesList_t &pageShapes)
InchPoint translateForLeftPage(centerToEdge_x * 2, centerToEdge_y);
InchPoint translateForRightPage(0, centerToEdge_y);
for (unsigned i = 0; i < m_pages.size(); ++i)
for (size_t i = 0; i < m_pages.size(); ++i)
{
const bool leftPageExists = (i > 0);
......@@ -689,7 +689,7 @@ void PMDCollector::fillOutputShapesByPage_OneSided(PageShapesList_t &pageShapes)
double centerToEdge_y = m_pageHeight.get().toInches() / 2;
InchPoint translateShapes(centerToEdge_x, centerToEdge_y);
for (unsigned i = 0; i < m_pages.size(); ++i)
for (size_t i = 0; i < m_pages.size(); ++i)
{
const PMDPage &page = m_pages[i];
for (unsigned j = 0; j < page.numShapes(); ++j)
......@@ -714,7 +714,7 @@ void PMDCollector::draw(librevenge::RVNGDrawingInterface *painter) const
PageShapesList_t shapesByPage;
fillOutputShapesByPage(shapesByPage);
for (unsigned i = 0; i < m_pages.size(); ++i)
for (size_t i = 0; i < m_pages.size(); ++i)
{
PageShapes_t shapes = shapesByPage[i];
writePage(m_pages[i], painter, shapes);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment