diff options
author | Nico Weber <thakis@chromium.org> | 2014-07-30 18:59:36 -0700 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2014-07-30 18:59:36 -0700 |
commit | 96608b3dbd60ecd1f288f2ddfc7af7628d49c0a0 (patch) | |
tree | fcd471bc90bc9b2b667126dfcfc4f0d58af912ab | |
parent | f04bd7611f6c053f06dedad9e3bff9d60e195674 (diff) | |
download | pdfium-96608b3dbd60ecd1f288f2ddfc7af7628d49c0a0.tar.xz |
Add missing braces for aggregate initializers.
No intended behavior change.
BUG=pdfium:29
R=bo_xu@foxitsoftware.com
Review URL: https://codereview.chromium.org/426763004
-rw-r--r-- | fpdfsdk/src/javascript/util.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/fpdfsdk/src/javascript/util.cpp b/fpdfsdk/src/javascript/util.cpp index 6563a10f97..a6f51deb41 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); |