From 6c55495fcaf634e7f788f4dfe77fa1a106c9cd55 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Tue, 29 Jul 2014 10:13:17 -0700 Subject: Fix a few more warnings in chromium_code mode. No intended behavior change. - Remove more unused variables, functions, member variables. - Put a few constructor initializers in the order they execute in. - Add braces for subobject initializers. - Fix a handful of signed / unsigned comparisons. BUG=pdfium:29 R=bo_xu@foxitsoftware.com Review URL: https://codereview.chromium.org/429593005 --- fpdfsdk/src/javascript/util.cpp | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'fpdfsdk/src/javascript/util.cpp') diff --git a/fpdfsdk/src/javascript/util.cpp b/fpdfsdk/src/javascript/util.cpp index bafdb22da9..6563a10f97 100644 --- a/fpdfsdk/src/javascript/util.cpp +++ b/fpdfsdk/src/javascript/util.cpp @@ -63,32 +63,32 @@ struct stru_TbConvert }; const stru_TbConvert fcTable[] = { - (FX_LPCWSTR)L"mmmm", (FX_LPCWSTR)L"%B", - (FX_LPCWSTR)L"mmm", (FX_LPCWSTR)L"%b", - (FX_LPCWSTR)L"mm", (FX_LPCWSTR)L"%m", + { (FX_LPCWSTR)L"mmmm", (FX_LPCWSTR)L"%B" }, + { (FX_LPCWSTR)L"mmm", (FX_LPCWSTR)L"%b" }, + { (FX_LPCWSTR)L"mm", (FX_LPCWSTR)L"%m" }, //"m" - (FX_LPCWSTR)L"dddd", (FX_LPCWSTR)L"%A", - (FX_LPCWSTR)L"ddd", (FX_LPCWSTR)L"%a", - (FX_LPCWSTR)L"dd", (FX_LPCWSTR)L"%d", + { (FX_LPCWSTR)L"dddd", (FX_LPCWSTR)L"%A" }, + { (FX_LPCWSTR)L"ddd", (FX_LPCWSTR)L"%a" }, + { (FX_LPCWSTR)L"dd", (FX_LPCWSTR)L"%d" }, //"d", "%w", - (FX_LPCWSTR)L"yyyy", (FX_LPCWSTR)L"%Y", - (FX_LPCWSTR)L"yy", (FX_LPCWSTR)L"%y", - (FX_LPCWSTR)L"HH", (FX_LPCWSTR)L"%H", + { (FX_LPCWSTR)L"yyyy", (FX_LPCWSTR)L"%Y" }, + { (FX_LPCWSTR)L"yy", (FX_LPCWSTR)L"%y" }, + { (FX_LPCWSTR)L"HH", (FX_LPCWSTR)L"%H" }, //"H" - (FX_LPCWSTR)L"hh", (FX_LPCWSTR)L"%I", + { (FX_LPCWSTR)L"hh", (FX_LPCWSTR)L"%I" }, //"h" - (FX_LPCWSTR)L"MM", (FX_LPCWSTR)L"%M", + { (FX_LPCWSTR)L"MM", (FX_LPCWSTR)L"%M" }, //"M" - (FX_LPCWSTR)L"ss", (FX_LPCWSTR)L"%S", + { (FX_LPCWSTR)L"ss", (FX_LPCWSTR)L"%S" }, //"s - (FX_LPCWSTR)L"TT", (FX_LPCWSTR)L"%p", + { (FX_LPCWSTR)L"TT", (FX_LPCWSTR)L"%p" }, //"t" #if defined(_WIN32) - (FX_LPCWSTR)L"tt", (FX_LPCWSTR)L"%p", - (FX_LPCWSTR)L"h", (FX_LPCWSTR)L"%#I", + { (FX_LPCWSTR)L"tt", (FX_LPCWSTR)L"%p" }, + { (FX_LPCWSTR)L"h", (FX_LPCWSTR)L"%#I" }, #else - (FX_LPCWSTR)L"tt", (FX_LPCWSTR)L"%P", - (FX_LPCWSTR)L"h", (FX_LPCWSTR)L"%l", + { (FX_LPCWSTR)L"tt", (FX_LPCWSTR)L"%P" }, + { (FX_LPCWSTR)L"h", (FX_LPCWSTR)L"%l" }, #endif }; -- cgit v1.2.3