summaryrefslogtreecommitdiff
path: root/core/fxcrt/cfx_datetime.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-16 22:08:27 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-16 22:08:27 +0000
commitec2209da158750beeeaeaab5dd68e58424921c4a (patch)
tree2bd86c2fd6f417d8022e13bafdb275823bf83e75 /core/fxcrt/cfx_datetime.h
parent1c4735aed9442a8e442214a23a3df94bd8fc99b5 (diff)
downloadpdfium-ec2209da158750beeeaeaab5dd68e58424921c4a.tar.xz
Convert CFX_DateTime::Now to be staticchromium/3272
This CL converts the CFX_DateTime::Now method to be a static and updates the callers. Change-Id: I26052c6194ed2d43bca5fee2542787ce166eda85 Reviewed-on: https://pdfium-review.googlesource.com/18670 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fxcrt/cfx_datetime.h')
-rw-r--r--core/fxcrt/cfx_datetime.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fxcrt/cfx_datetime.h b/core/fxcrt/cfx_datetime.h
index 28991103f5..910a847506 100644
--- a/core/fxcrt/cfx_datetime.h
+++ b/core/fxcrt/cfx_datetime.h
@@ -14,6 +14,8 @@ uint8_t FX_DaysInMonth(int32_t iYear, uint8_t iMonth);
class CFX_DateTime {
public:
+ static CFX_DateTime Now();
+
CFX_DateTime()
: year_(0),
month_(0),
@@ -37,8 +39,6 @@ class CFX_DateTime {
second_(second),
millisecond_(millisecond) {}
- void Now();
-
void Reset() {
year_ = 0;
month_ = 0;