summaryrefslogtreecommitdiff
path: root/xfa/fgas/localization/fgas_locale.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-04-01 15:31:40 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-01 15:31:40 -0700
commit4af5fd19d4101079d5a47412e07a5daaf3dade6e (patch)
tree94493ab11afc0ed1a16dd753db27e436f1a0069e /xfa/fgas/localization/fgas_locale.cpp
parent23863e4c86a99381c1bd83e76c9055b10a8bf6c4 (diff)
downloadpdfium-4af5fd19d4101079d5a47412e07a5daaf3dade6e.tar.xz
Remove CFX_ string type static initializers.
In XFA, we were constructing some CFX_ string types before we reached main(). Setting breakpoints on these as well as main() shows we hit main first after applying the patch. Doing so also turned up an unused variable, presumably because the static initializer made it appear used. Review URL: https://codereview.chromium.org/1846353002
Diffstat (limited to 'xfa/fgas/localization/fgas_locale.cpp')
-rw-r--r--xfa/fgas/localization/fgas_locale.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/xfa/fgas/localization/fgas_locale.cpp b/xfa/fgas/localization/fgas_locale.cpp
index a6443f4de7..2d72454038 100644
--- a/xfa/fgas/localization/fgas_locale.cpp
+++ b/xfa/fgas/localization/fgas_locale.cpp
@@ -56,10 +56,9 @@ static const FX_LOCALETIMEZONEINFO g_FXLocaleTimeZoneData[] = {
{FXBSTR_ID(0, 'P', 'D', 'T'), -7, 0}, {FXBSTR_ID(0, 'P', 'S', 'T'), -8, 0},
};
-static const CFX_WideStringC gs_wsTextSymbols = FX_WSTRC(L"AXO09");
-static const CFX_WideStringC gs_wsTimeSymbols = FX_WSTRC(L"hHkKMSFAzZ");
-static const CFX_WideStringC gs_wsDateSymbols = FX_WSTRC(L"DJMEeGgYwW");
-static const CFX_WideStringC gs_wsConstChars = FX_WSTRC(L",-:/. ");
+static const FX_WCHAR gs_wsTimeSymbols[] = L"hHkKMSFAzZ";
+static const FX_WCHAR gs_wsDateSymbols[] = L"DJMEeGgYwW";
+static const FX_WCHAR gs_wsConstChars[] = L",-:/. ";
static FX_STRSIZE FX_Local_Find(const CFX_WideStringC& wsSymbols,
FX_WCHAR ch,