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 --- core/src/fxge/ge/fx_ge_fontmap.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/src/fxge/ge') diff --git a/core/src/fxge/ge/fx_ge_fontmap.cpp b/core/src/fxge/ge/fx_ge_fontmap.cpp index f5d378d55b..4c99765e7d 100644 --- a/core/src/fxge/ge/fx_ge_fontmap.cpp +++ b/core/src/fxge/ge/fx_ge_fontmap.cpp @@ -859,11 +859,11 @@ typedef struct _FX_FontStyle { FX_INT32 len; } FX_FontStyle; const FX_FontStyle g_FontStyles[] = { - "Bold", 4, - "Italic", 6, - "BoldItalic", 10, - "Reg", 3, - "Regular", 7, + { "Bold", 4 }, + { "Italic", 6 }, + { "BoldItalic", 10 }, + { "Reg", 3 }, + { "Regular", 7 }, }; CFX_ByteString ParseStyle(FX_LPCSTR pStyle, int iLen, int iIndex) { -- cgit v1.2.3