summaryrefslogtreecommitdiff
path: root/fpdfsdk/src
diff options
context:
space:
mode:
authorLei Zhang <thestig@google.com>2015-01-05 16:54:03 -0800
committerLei Zhang <thestig@google.com>2015-01-05 16:54:03 -0800
commit256ef88a26cff56fc7c23119d2d9e1b41468bd1a (patch)
tree3c964872ca2b02ba2ebc6e976790b6ebf4e532fa /fpdfsdk/src
parenta48ead9b7e3dc01f1bde83f69062eebd960edfdc (diff)
downloadpdfium-256ef88a26cff56fc7c23119d2d9e1b41468bd1a.tar.xz
Cleanup: Get rid of CRLF line endings.
R=brucedawson@chromium.org Review URL: https://codereview.chromium.org/837533003
Diffstat (limited to 'fpdfsdk/src')
-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 88b3fe77ce..b45fd04558 100644
--- a/fpdfsdk/src/javascript/global.cpp
+++ b/fpdfsdk/src/javascript/global.cpp
@@ -18,24 +18,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;