mirror of
https://github.com/qpdf/qpdf.git
synced 2024-05-31 01:10:51 +00:00
Use auto for iterating over sparse array
This commit is contained in:
parent
70665cb381
commit
ee271fd2f2
|
@ -146,8 +146,7 @@ QPDF_Array::getElementsForShallowCopy() const
|
|||
void
|
||||
QPDF_Array::addExplicitElementsToList(std::list<QPDFObjectHandle>& l) const
|
||||
{
|
||||
for (std::map<size_t, QPDFObjectHandle>::const_iterator iter =
|
||||
this->elements.begin();
|
||||
for (auto iter = this->elements.begin();
|
||||
iter != this->elements.end(); ++iter)
|
||||
{
|
||||
l.push_back((*iter).second);
|
||||
|
|
Loading…
Reference in New Issue
Block a user