summaryrefslogtreecommitdiff
path: root/core/include/fpdfapi
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2015-10-21 09:04:14 -0400
committerDan Sinclair <dsinclair@chromium.org>2015-10-21 09:04:14 -0400
commit1edb860fd465879311ec85c5c6385067b7985013 (patch)
treeb98487088122ca95966550e2c902b0e3ded66ad5 /core/include/fpdfapi
parentbbe0e4d3b57f95e93535c95298203c62d62474fe (diff)
downloadpdfium-1edb860fd465879311ec85c5c6385067b7985013.tar.xz
Merge to XFA: Remove void* ctor from CPDF_Number.
This Removes the ctor that took a pointer to the data to store and copied it into the union memory. Instead, the call sites look at the type and pass the correct value. TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1422473002 . (cherry picked from commit 8430a5d04883fac4666d0c321fc679bcaf99cb71) Review URL: https://codereview.chromium.org/1417113002 .
Diffstat (limited to 'core/include/fpdfapi')
-rw-r--r--core/include/fpdfapi/fpdf_objects.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/core/include/fpdfapi/fpdf_objects.h b/core/include/fpdfapi/fpdf_objects.h
index a5f52832a1..17aba67deb 100644
--- a/core/include/fpdfapi/fpdf_objects.h
+++ b/core/include/fpdfapi/fpdf_objects.h
@@ -140,13 +140,7 @@ class CPDF_Number : public CPDF_Object {
return new CPDF_Number(str);
}
- static CPDF_Number* Create(FX_BOOL bInteger, void* pData) {
- return new CPDF_Number(bInteger, pData);
- }
-
- CPDF_Number() : CPDF_Object(PDFOBJ_NUMBER), m_bInteger(false), m_Integer(0) {}
-
- CPDF_Number(FX_BOOL bInteger, void* pData);
+ CPDF_Number() : CPDF_Object(PDFOBJ_NUMBER), m_bInteger(TRUE), m_Integer(0) {}
CPDF_Number(int value);