Fix a couple style nits missed during review. Followup to bug 616262, r=sparky
authorJeff Walden <jwalden@mit.edu>
Thu, 14 Jun 2012 17:55:11 -0700
changeset 101756 a112cf3d055d8930f8bdb7f40b8537cc26bab787
parent 101755 30da794ae32ca71964099e32577ef8f370036ded
child 101757 01844720b147314475896425f6c5ae9e6f363053
push idunknown
push userunknown
push dateunknown
reviewerssparky
bugs616262
milestone16.0a1
Fix a couple style nits missed during review. Followup to bug 616262, r=sparky
mfbt/TypeTraits.h
--- a/mfbt/TypeTraits.h
+++ b/mfbt/TypeTraits.h
@@ -1,54 +1,54 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
+/* Template-based metaprogramming and type-testing facilities. */
+
 #ifndef mozilla_TypeTraits_h_
 #define mozilla_TypeTraits_h_
 
-/* Template-based metaprogramming and type-testing facilities. */
-
 namespace mozilla {
 
 /*
  * IsBaseOf allows to know whether a given class is derived from another.
  *
  * Consider the following class definitions:
  *
  *   class A {};
  *   class B : public A {};
  *   class C {};
  *
  * mozilla::IsBaseOf<A, B>::value is true;
  * mozilla::IsBaseOf<A, C>::value is false;
  */
-template <class Base, class Derived>
+template<class Base, class Derived>
 class IsBaseOf
 {
   private:
-    static char Test(Base *);
-    static int Test(...);
+    static char test(Base* b);
+    static int test(...);
   public:
-    static const bool value = (sizeof(Test(static_cast<Derived *>(0))) == sizeof(char));
+    static const bool value = (sizeof(test(static_cast<Derived*>(0))) == sizeof(char));
 };
 
 /*
  * Conditional selects a class between two, depending on a given boolean value.
  *
  * mozilla::Conditional<true, A, B>::Type is A;
  * mozilla::Conditional<false, A, B>::Type is B;
  */
-template <bool condition, class A, class B>
+template<bool condition, class A, class B>
 struct Conditional
 {
     typedef A Type;
 };
 
-template <class A, class B>
+template<class A, class B>
 struct Conditional<false, A, B>
 {
     typedef B Type;
 };
 
 } /* namespace mozilla */
 
 #endif  /* mozilla_TypeTraits_h_ */