Index: core/fpdfapi/parser/cpdf_dictionary.cpp |
diff --git a/core/fpdfapi/parser/cpdf_dictionary.cpp b/core/fpdfapi/parser/cpdf_dictionary.cpp |
index 02cdfa37daa511abd6cb58ef4b333e58be157a2a..f28507e2e466a9348c57cbefd9c5ad522db9a7d6 100644 |
--- a/core/fpdfapi/parser/cpdf_dictionary.cpp |
+++ b/core/fpdfapi/parser/cpdf_dictionary.cpp |
@@ -270,22 +270,22 @@ void CPDF_Dictionary::SetBooleanFor(const CFX_ByteString& key, bool bValue) { |
void CPDF_Dictionary::SetRectFor(const CFX_ByteString& key, |
const CFX_FloatRect& rect) { |
CPDF_Array* pArray = new CPDF_Array; |
- pArray->AddNumber(rect.left); |
- pArray->AddNumber(rect.bottom); |
- pArray->AddNumber(rect.right); |
- pArray->AddNumber(rect.top); |
+ pArray->AddNew<CPDF_Number>(rect.left); |
+ pArray->AddNew<CPDF_Number>(rect.bottom); |
+ pArray->AddNew<CPDF_Number>(rect.right); |
+ pArray->AddNew<CPDF_Number>(rect.top); |
SetFor(key, pArray); |
} |
void CPDF_Dictionary::SetMatrixFor(const CFX_ByteString& key, |
const CFX_Matrix& matrix) { |
CPDF_Array* pArray = new CPDF_Array; |
- pArray->AddNumber(matrix.a); |
- pArray->AddNumber(matrix.b); |
- pArray->AddNumber(matrix.c); |
- pArray->AddNumber(matrix.d); |
- pArray->AddNumber(matrix.e); |
- pArray->AddNumber(matrix.f); |
+ pArray->AddNew<CPDF_Number>(matrix.a); |
+ pArray->AddNew<CPDF_Number>(matrix.b); |
+ pArray->AddNew<CPDF_Number>(matrix.c); |
+ pArray->AddNew<CPDF_Number>(matrix.d); |
+ pArray->AddNew<CPDF_Number>(matrix.e); |
+ pArray->AddNew<CPDF_Number>(matrix.f); |
SetFor(key, pArray); |
} |