summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/javascript/global.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-02-27 19:49:57 -0800
committerLei Zhang <thestig@chromium.org>2015-02-27 19:49:57 -0800
commit659b8d3a3de770f8dc0e0334bda9748301403bae (patch)
tree9680123aaa4f3836f79b227c8e7395bbfa3f8a74 /fpdfsdk/src/javascript/global.cpp
parent6ebc7515e1e6a75c5aa8c16fc7a1250fc58f44f2 (diff)
downloadpdfium-659b8d3a3de770f8dc0e0334bda9748301403bae.tar.xz
Merge to XFA: Cleanup: Get rid of CRLF line endings.
Original URL: https://codereview.chromium.org/837533003 (cherry picked from commit 256ef88a26cff56fc7c23119d2d9e1b41468bd1a) Review URL: https://codereview.chromium.org/963403002
Diffstat (limited to 'fpdfsdk/src/javascript/global.cpp')
-rw-r--r--fpdfsdk/src/javascript/global.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/fpdfsdk/src/javascript/global.cpp b/fpdfsdk/src/javascript/global.cpp
index 906c73705c..39e6dc0237 100644
--- a/fpdfsdk/src/javascript/global.cpp
+++ b/fpdfsdk/src/javascript/global.cpp
@@ -19,24 +19,24 @@
// Helper class for compile-time calculation of hash values in order to
// avoid having global object initializers.
-template <unsigned ACC, wchar_t... Ns>
-struct CHash;
-
-// Only needed to hash single-character strings.
-template <wchar_t N>
-struct CHash<N> {
- static const unsigned value = N;
-};
-
-template <unsigned ACC, wchar_t N>
-struct CHash<ACC, N> {
- static const unsigned value = (ACC * 1313LLU + N) & 0xFFFFFFFF;
-};
-
-template <unsigned ACC, wchar_t N, wchar_t... Ns>
-struct CHash<ACC, N, Ns...> {
- static const unsigned value = CHash<CHash<ACC, N>::value, Ns...>::value;
-};
+template <unsigned ACC, wchar_t... Ns>
+struct CHash;
+
+// Only needed to hash single-character strings.
+template <wchar_t N>
+struct CHash<N> {
+ static const unsigned value = N;
+};
+
+template <unsigned ACC, wchar_t N>
+struct CHash<ACC, N> {
+ static const unsigned value = (ACC * 1313LLU + N) & 0xFFFFFFFF;
+};
+
+template <unsigned ACC, wchar_t N, wchar_t... Ns>
+struct CHash<ACC, N, Ns...> {
+ static const unsigned value = CHash<CHash<ACC, N>::value, Ns...>::value;
+};
extern const unsigned int JSCONST_nStringHash =
CHash<'s','t','r','i','n','g'>::value;