Index: core/fpdfapi/font/cpdf_fontencoding.cpp |
diff --git a/core/fpdfapi/font/cpdf_fontencoding.cpp b/core/fpdfapi/font/cpdf_fontencoding.cpp |
index fba35a1062eac6cdcc62b4ecde9af79d153da93c..3537330def7b3ff9256cfdcc4a82a93f78fac809 100644 |
--- a/core/fpdfapi/font/cpdf_fontencoding.cpp |
+++ b/core/fpdfapi/font/cpdf_fontencoding.cpp |
@@ -1703,11 +1703,11 @@ CPDF_Object* CPDF_FontEncoding::Realize(CFX_WeakPtr<CFX_ByteStringPool> pPool) { |
PDF_UnicodesForPredefinedCharSet(PDFFONT_ENCODING_WINANSI); |
CPDF_Array* pDiff = new CPDF_Array; |
for (int i = 0; i < 256; i++) { |
- if (pStandard[i] == m_Unicodes[i]) { |
+ if (pStandard[i] == m_Unicodes[i]) |
continue; |
- } |
- pDiff->Add(new CPDF_Number(i)); |
- pDiff->Add(new CPDF_Name(PDF_AdobeNameFromUnicode(m_Unicodes[i]))); |
+ |
+ pDiff->AddNew<CPDF_Number>(i); |
+ pDiff->AddNew<CPDF_Name>(PDF_AdobeNameFromUnicode(m_Unicodes[i])); |
} |
CPDF_Dictionary* pDict = new CPDF_Dictionary(pPool); |