+ don't create stack variable for reclen
This commit is contained in:
parent
7bef66b448
commit
d6acd74ec3
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue