| Index: core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp
|
| diff --git a/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp b/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp
|
| index 6e20b582fc4b4233ed068d949392494638a8b364..485c56bc8dd82d4d1959d98af7e9f0c5dfe97d43 100644
|
| --- a/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp
|
| +++ b/core/src/fpdfapi/fpdf_parser/fpdf_parser_utility.cpp
|
| @@ -385,10 +385,9 @@ CFX_ByteTextBuf& operator<<(CFX_ByteTextBuf& buf, const CPDF_Object* pObj) {
|
| case PDFOBJ_DICTIONARY: {
|
| const CPDF_Dictionary* p = pObj->AsDictionary();
|
| buf << "<<";
|
| - FX_POSITION pos = p->GetStartPos();
|
| - while (pos) {
|
| - CFX_ByteString key;
|
| - CPDF_Object* pValue = p->GetNextElement(pos, key);
|
| + for (const auto& it : *p) {
|
| + const CFX_ByteString& key = it.first;
|
| + CPDF_Object* pValue = it.second;
|
| buf << "/" << PDF_NameEncode(key);
|
| if (pValue && pValue->GetObjNum()) {
|
| buf << " " << pValue->GetObjNum() << " 0 R ";
|
|
|