summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/javascript/PublicMethods.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2014-07-29 10:13:17 -0700
committerNico Weber <thakis@chromium.org>2014-07-29 10:13:17 -0700
commit6c55495fcaf634e7f788f4dfe77fa1a106c9cd55 (patch)
tree3fe8612d47f51ff551e480a2088a48349cd9bdf7 /fpdfsdk/src/javascript/PublicMethods.cpp
parentc77e8f73397613f278eaeef2cae44debc6a684c8 (diff)
downloadpdfium-6c55495fcaf634e7f788f4dfe77fa1a106c9cd55.tar.xz
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
Diffstat (limited to 'fpdfsdk/src/javascript/PublicMethods.cpp')
-rw-r--r--fpdfsdk/src/javascript/PublicMethods.cpp27
1 files changed, 14 insertions, 13 deletions
diff --git a/fpdfsdk/src/javascript/PublicMethods.cpp b/fpdfsdk/src/javascript/PublicMethods.cpp
index c030d6cad2..e307f432d3 100644
--- a/fpdfsdk/src/javascript/PublicMethods.cpp
+++ b/fpdfsdk/src/javascript/PublicMethods.cpp
@@ -68,25 +68,26 @@ struct stru_TbConvert
FX_LPCSTR lpszCppMark;
};
-static const stru_TbConvert fcTable[] = {"mmmm","%B",
- "mmm", "%b",
- "mm", "%m",
+static const stru_TbConvert fcTable[] = {
+ { "mmmm","%B" },
+ { "mmm", "%b" },
+ { "mm", "%m" },
//"m"
- "dddd","%A",
- "ddd", "%a",
- "dd", "%d",
+ { "dddd","%A" },
+ { "ddd", "%a" },
+ { "dd", "%d" },
//"d", "%w",
- "yyyy","%Y",
- "yy", "%y",
- "HH", "%H",
+ { "yyyy","%Y" },
+ { "yy", "%y" },
+ { "HH", "%H" },
//"H"
- "hh", "%I",
+ { "hh", "%I" },
//"h"
- "MM", "%M",
+ { "MM", "%M" },
//"M"
- "ss", "%S",
+ { "ss", "%S" },
//"s
- "tt", "%p"
+ { "tt", "%p" },
//"t"
};