diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-16 22:08:27 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-16 22:08:27 +0000 |
commit | ec2209da158750beeeaeaab5dd68e58424921c4a (patch) | |
tree | 2bd86c2fd6f417d8022e13bafdb275823bf83e75 /fpdfsdk | |
parent | 1c4735aed9442a8e442214a23a3df94bd8fc99b5 (diff) | |
download | pdfium-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 'fpdfsdk')
-rw-r--r-- | fpdfsdk/fpdfattachment.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fpdfsdk/fpdfattachment.cpp b/fpdfsdk/fpdfattachment.cpp index 8b3c8fe20a..eb835343e3 100644 --- a/fpdfsdk/fpdfattachment.cpp +++ b/fpdfsdk/fpdfattachment.cpp @@ -230,8 +230,7 @@ FPDFAttachment_SetFile(FPDF_ATTACHMENT attachment, pParamsDict->SetNewFor<CPDF_Number>("Size", static_cast<int>(len)); // Set the creation date of the new attachment in the dictionary. - CFX_DateTime dateTime; - dateTime.Now(); + CFX_DateTime dateTime = CFX_DateTime::Now(); pParamsDict->SetNewFor<CPDF_String>( "CreationDate", ByteString::Format("D:%d%02d%02d%02d%02d%02d", dateTime.GetYear(), |