+ don't create stack variable for reclen

This commit is contained in:
Artem Pavlenko 2010-07-25 20:12:43 +00:00
parent 7bef66b448
commit d6acd74ec3

View file

@ -107,13 +107,12 @@ feature_ptr shape_featureset<filterT>::next()
{ {
while (!filter_.pass(shape_.current_extent())) while (!filter_.pass(shape_.current_extent()))
{ {
int reclen=shape_.reclength_;
if (!shape_.shp().is_eof()) if (!shape_.shp().is_eof())
{ {
std::streampos pos = shape_.shp().pos(); std::streampos pos = shape_.shp().pos();
if (shape_.type() != shape_io::shape_null) if (shape_.type() != shape_io::shape_null)
{ {
pos += std::streampos(2 * reclen - 36); pos += std::streampos(2 * shape_.reclength_ - 36);
} }
shape_.move_to(pos); shape_.move_to(pos);
} }