Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(939)

Unified Diff: fpdfsdk/fpdfeditpage.cpp

Issue 2509123002: Make CPDF_Object subclass constructors intern strings (Closed)
Patch Set: finish Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: fpdfsdk/fpdfeditpage.cpp
diff --git a/fpdfsdk/fpdfeditpage.cpp b/fpdfsdk/fpdfeditpage.cpp
index 9dc8ae9099b0b89bc99589782b4c38a2f00b7093..81cc5ce13819157a775b2f448ae6e8a040ba0f37 100644
--- a/fpdfsdk/fpdfeditpage.cpp
+++ b/fpdfsdk/fpdfeditpage.cpp
@@ -84,7 +84,8 @@ DLLEXPORT FPDF_DOCUMENT STDCALL FPDF_CreateNewDocument() {
pInfoDict = pDoc->GetInfo();
if (pInfoDict) {
if (FSDK_IsSandBoxPolicyEnabled(FPDF_POLICY_MACHINETIME_ACCESS))
Lei Zhang 2016/11/17 01:05:06 braces
Tom Sepez 2016/11/17 01:13:48 Done.
- pInfoDict->SetFor("CreationDate", new CPDF_String(DateStr, false));
+ pInfoDict->SetFor("CreationDate",
+ new CPDF_String(nullptr, DateStr, false));
pInfoDict->SetFor("Creator", new CPDF_String(L"PDFium"));
}

Powered by Google App Engine
This is Rietveld 408576698