2
1
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:
m-holger 2023-05-20 13:35:41 +01:00
parent 2fa581537b
commit 774d0d558e

View File

@ -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));