diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2015-10-21 08:57:40 -0400 |
---|---|---|
committer | Dan Sinclair <dsinclair@chromium.org> | 2015-10-21 08:57:40 -0400 |
commit | 8430a5d04883fac4666d0c321fc679bcaf99cb71 (patch) | |
tree | 08e0bdbd642aebab3362bd31e0abc671158aa14b /core/include | |
parent | 5a5b6fb3759daf1201ffc9702f626f4b243922d0 (diff) | |
download | pdfium-8430a5d04883fac4666d0c321fc679bcaf99cb71.tar.xz |
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.
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1422473002 .
Diffstat (limited to 'core/include')
-rw-r--r-- | core/include/fpdfapi/fpdf_objects.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/core/include/fpdfapi/fpdf_objects.h b/core/include/fpdfapi/fpdf_objects.h index a52132f6b9..0df8be727c 100644 --- a/core/include/fpdfapi/fpdf_objects.h +++ b/core/include/fpdfapi/fpdf_objects.h @@ -138,13 +138,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); |