mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-31 02:48:31 +00:00
Use auto when declaring iterators
This commit is contained in:
parent
2fa581537b
commit
774d0d558e
@ -2537,7 +2537,7 @@ QPDF::getCompressibleObjGens()
|
||||
if (obj.isStream()) {
|
||||
QPDFObjectHandle dict = obj.getDict();
|
||||
std::set<std::string> keys = dict.getKeys();
|
||||
for (std::set<std::string>::reverse_iterator iter = keys.rbegin();
|
||||
for (auto iter = keys.rbegin();
|
||||
iter != keys.rend();
|
||||
++iter) {
|
||||
std::string const& key = *iter;
|
||||
@ -2553,7 +2553,7 @@ QPDF::getCompressibleObjGens()
|
||||
}
|
||||
} else if (obj.isDictionary()) {
|
||||
std::set<std::string> keys = obj.getKeys();
|
||||
for (std::set<std::string>::reverse_iterator iter = keys.rbegin();
|
||||
for (auto iter = keys.rbegin();
|
||||
iter != keys.rend();
|
||||
++iter) {
|
||||
queue.push_front(obj.getKey(*iter));
|
||||
|
Loading…
x
Reference in New Issue
Block a user