Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ae96cad

Browse files
committed
Don't use iteration constructor
Apparently some compilers don't support that.
1 parent 3c6a107 commit ae96cad

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

ttconv/pprdrv_tt2.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,15 @@ void GlyphToType3::PSConvert(TTStreamWriter& stream)
271271
}
272272

273273
// For output, a vector is more convenient than a list.
274-
std::vector<FlaggedPoint> points_v(points.begin(), points.end());
274+
std::vector<FlaggedPoint> points_v;
275+
points_v.reserve(points.size());
276+
for (std::list<FlaggedPoint>::iterator it = points.begin();
277+
it != points.end();
278+
it++)
279+
{
280+
points_v.push_back(*it);
281+
}
282+
275283
// The first point
276284
stack(stream, 3);
277285
PSMoveto(stream, points_v.front().x, points_v.front().y);

0 commit comments

Comments
 (0)