diff options
author | tsepez <tsepez@chromium.org> | 2016-09-13 18:10:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-13 18:10:14 -0700 |
commit | b31ca718ee94b681b9a1c3e59dcd885a4f421a5f (patch) | |
tree | 170dba0f27733980769ee52c4ee0aa1be188cc59 /fpdfsdk/include/cpdfsdk_datetime.h | |
parent | 63f545c485c063831ecb58fb492f96fe5f462fd1 (diff) | |
download | pdfium-b31ca718ee94b681b9a1c3e59dcd885a4f421a5f.tar.xz |
Remove inner FX_DATETIME struct from CPDFSDK_DateTime
There's a separate, different FX_DATETIME in XFA. Once we remove
memcpy(), there's no reason to have the inner struct for sizing.
Review-Url: https://codereview.chromium.org/2333213005
Diffstat (limited to 'fpdfsdk/include/cpdfsdk_datetime.h')
-rw-r--r-- | fpdfsdk/include/cpdfsdk_datetime.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/fpdfsdk/include/cpdfsdk_datetime.h b/fpdfsdk/include/cpdfsdk_datetime.h index 785d96adc4..564ebbeeb4 100644 --- a/fpdfsdk/include/cpdfsdk_datetime.h +++ b/fpdfsdk/include/cpdfsdk_datetime.h @@ -33,20 +33,17 @@ class CPDFSDK_DateTime { CPDFSDK_DateTime ToGMT() const; CPDFSDK_DateTime& AddDays(short days); CPDFSDK_DateTime& AddSeconds(int seconds); - void ResetDateTime(); private: - struct FX_DATETIME { - int16_t year; - uint8_t month; - uint8_t day; - uint8_t hour; - uint8_t minute; - uint8_t second; - int8_t tzHour; - uint8_t tzMinute; - } dt; + int16_t m_year; + uint8_t m_month; + uint8_t m_day; + uint8_t m_hour; + uint8_t m_minute; + uint8_t m_second; + int8_t m_tzHour; + uint8_t m_tzMinute; }; #endif // FPDFSDK_INCLUDE_CPDFSDK_DATETIME_H_ |