summaryrefslogtreecommitdiff
path: root/fpdfsdk/include
diff options
context:
space:
mode:
authorweili <weili@chromium.org>2016-06-08 11:41:00 -0700
committerCommit bot <commit-bot@chromium.org>2016-06-08 11:41:00 -0700
commitb7a5179a7cd73d33355e1cece763caf238b7dc22 (patch)
treeb7707789fb5fb4c8d65f7c04c5e8b834a68ac088 /fpdfsdk/include
parentd3be111cac2bb20e1917b3fae2102e742bb7efdb (diff)
downloadpdfium-b7a5179a7cd73d33355e1cece763caf238b7dc22.tar.xz
Change time_t conversion operator to ToTime_t() function
In class CPDFSDK_DateTime, use ToTime_t() function to make the conversion more clear. Also, clean up the code in this class by removing buggy/unused code, using static_cast instead of c cast etc. Review-Url: https://codereview.chromium.org/2043873006
Diffstat (limited to 'fpdfsdk/include')
-rw-r--r--fpdfsdk/include/fsdk_baseannot.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/fpdfsdk/include/fsdk_baseannot.h b/fpdfsdk/include/fsdk_baseannot.h
index 236e2c7868..752d91a903 100644
--- a/fpdfsdk/include/fsdk_baseannot.h
+++ b/fpdfsdk/include/fsdk_baseannot.h
@@ -37,16 +37,12 @@ class CPDFSDK_DateTime {
CPDFSDK_DateTime& operator=(const FX_SYSTEMTIME& st);
bool operator==(const CPDFSDK_DateTime& datetime) const;
bool operator!=(const CPDFSDK_DateTime& datetime) const;
- bool operator>(const CPDFSDK_DateTime& datetime) const;
- bool operator>=(const CPDFSDK_DateTime& datetime) const;
- bool operator<(const CPDFSDK_DateTime& datetime) const;
- bool operator<=(const CPDFSDK_DateTime& datetime) const;
- operator time_t();
CPDFSDK_DateTime& FromPDFDateTimeString(const CFX_ByteString& dtStr);
CFX_ByteString ToCommonDateTimeString();
CFX_ByteString ToPDFDateTimeString();
void ToSystemTime(FX_SYSTEMTIME& st);
+ time_t ToTime_t() const;
CPDFSDK_DateTime ToGMT() const;
CPDFSDK_DateTime& AddDays(short days);
CPDFSDK_DateTime& AddSeconds(int seconds);