Commit 774d0d558e1cc3c3c58685a1f401fc6ff24d6e70
1 parent
2fa58153
Use auto when declaring iterators
Showing
1 changed file
with
2 additions
and
2 deletions
libqpdf/QPDF.cc
| @@ -2537,7 +2537,7 @@ QPDF::getCompressibleObjGens() | @@ -2537,7 +2537,7 @@ QPDF::getCompressibleObjGens() | ||
| 2537 | if (obj.isStream()) { | 2537 | if (obj.isStream()) { |
| 2538 | QPDFObjectHandle dict = obj.getDict(); | 2538 | QPDFObjectHandle dict = obj.getDict(); |
| 2539 | std::set<std::string> keys = dict.getKeys(); | 2539 | std::set<std::string> keys = dict.getKeys(); |
| 2540 | - for (std::set<std::string>::reverse_iterator iter = keys.rbegin(); | 2540 | + for (auto iter = keys.rbegin(); |
| 2541 | iter != keys.rend(); | 2541 | iter != keys.rend(); |
| 2542 | ++iter) { | 2542 | ++iter) { |
| 2543 | std::string const& key = *iter; | 2543 | std::string const& key = *iter; |
| @@ -2553,7 +2553,7 @@ QPDF::getCompressibleObjGens() | @@ -2553,7 +2553,7 @@ QPDF::getCompressibleObjGens() | ||
| 2553 | } | 2553 | } |
| 2554 | } else if (obj.isDictionary()) { | 2554 | } else if (obj.isDictionary()) { |
| 2555 | std::set<std::string> keys = obj.getKeys(); | 2555 | std::set<std::string> keys = obj.getKeys(); |
| 2556 | - for (std::set<std::string>::reverse_iterator iter = keys.rbegin(); | 2556 | + for (auto iter = keys.rbegin(); |
| 2557 | iter != keys.rend(); | 2557 | iter != keys.rend(); |
| 2558 | ++iter) { | 2558 | ++iter) { |
| 2559 | queue.push_front(obj.getKey(*iter)); | 2559 | queue.push_front(obj.getKey(*iter)); |