Chromium Code Reviews| Index: core/fpdfdoc/doc_form.cpp |
| diff --git a/core/fpdfdoc/doc_form.cpp b/core/fpdfdoc/doc_form.cpp |
| index 2a6d7395493f96e9b0ebcea6e825090e47dd9ab0..0eee13fa606073db567ced1764724bed8beeac8e 100644 |
| --- a/core/fpdfdoc/doc_form.cpp |
| +++ b/core/fpdfdoc/doc_form.cpp |
| @@ -343,7 +343,7 @@ CFX_ByteString CPDF_InterForm::GenerateNewResourceName( |
| int num = 0; |
| CFX_ByteString bsNum; |
| while (TRUE) { |
| - if (!pDict->KeyExist(csTmp + bsNum)) { |
| + if (!pDict->KeyExist((csTmp + bsNum).AsByteStringC())) { |
|
Lei Zhang
2016/04/04 22:11:29
Save the resulting CFX_ByteString so you don't nee
Tom Sepez
2016/04/04 22:54:38
Done.
|
| return csTmp + bsNum; |
| } |
| if (m < iCount) { |