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

Unified Diff: fpdfsdk/src/javascript/util.cpp

Issue 426763004: Add missing braces for aggregate initializers. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 6 years, 5 months 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/src/javascript/util.cpp
diff --git a/fpdfsdk/src/javascript/util.cpp b/fpdfsdk/src/javascript/util.cpp
index 6563a10f970897849eb58f0e31b5a974b15a4893..a6f51deb41933fe746086fb8afbe37d91c04e941 100644
--- a/fpdfsdk/src/javascript/util.cpp
+++ b/fpdfsdk/src/javascript/util.cpp
@@ -322,12 +322,12 @@ FX_BOOL util::printd(OBJ_METHOD_PARAMS)
};
stru_TbConvertAd cTableAd[] ={
- (FX_LPCWSTR)L"m", iMonth+1,
- (FX_LPCWSTR)L"d", iDay,
- (FX_LPCWSTR)L"H", iHour,
- (FX_LPCWSTR)L"h", iHour>12?iHour-12:iHour,
- (FX_LPCWSTR)L"M", iMin,
- (FX_LPCWSTR)L"s", iSec
+ { (FX_LPCWSTR)L"m", iMonth+1 },
+ { (FX_LPCWSTR)L"d", iDay },
+ { (FX_LPCWSTR)L"H", iHour },
+ { (FX_LPCWSTR)L"h", iHour>12?iHour-12:iHour },
+ { (FX_LPCWSTR)L"M", iMin },
+ { (FX_LPCWSTR)L"s", iSec },
};
//cFormat = strFormat.GetBuffer(strFormat.GetLength()+1);
@@ -418,12 +418,12 @@ void util::printd(const std::wstring &cFormat2, CJS_Date jsDate, bool bXFAPictur
};
stru_TbConvertAd cTableAd[] ={
- (FX_LPCWSTR)L"m", iMonth+1,
- (FX_LPCWSTR)L"d", iDay,
- (FX_LPCWSTR)L"H", iHour,
- (FX_LPCWSTR)L"h", iHour>12?iHour-12:iHour,
- (FX_LPCWSTR)L"M", iMin,
- (FX_LPCWSTR)L"s", iSec
+ { (FX_LPCWSTR)L"m", iMonth+1 },
+ { (FX_LPCWSTR)L"d", iDay },
+ { (FX_LPCWSTR)L"H", iHour },
+ { (FX_LPCWSTR)L"h", iHour>12?iHour-12:iHour },
+ { (FX_LPCWSTR)L"M", iMin },
+ { (FX_LPCWSTR)L"s", iSec },
};
//cFormat = strFormat.GetBuffer(strFormat.GetLength()+1);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698