diff --git a/mfbt/FloatingPoint.h b/mfbt/FloatingPoint.h index 71ca0191207..490dee7e550 100644 --- a/mfbt/FloatingPoint.h +++ b/mfbt/FloatingPoint.h @@ -338,7 +338,7 @@ struct FuzzyEqualsEpsilon { // A number near 1e-5 that is exactly representable in // floating point - static const float value() { return 1.0f / (1 << 17); } + static float value() { return 1.0f / (1 << 17); } }; template<> @@ -346,7 +346,7 @@ struct FuzzyEqualsEpsilon { // A number near 1e-12 that is exactly representable in // a double - static const double value() { return 1.0 / (1LL << 40); } + static double value() { return 1.0 / (1LL << 40); } }; } // namespace detail diff --git a/mfbt/Scoped.h b/mfbt/Scoped.h index ff078f4282d..11fead1c1f5 100644 --- a/mfbt/Scoped.h +++ b/mfbt/Scoped.h @@ -290,8 +290,8 @@ template struct TypeSpecificScopedPointerTraits { typedef T* type; - const static type empty() { return nullptr; } - const static void release(type value) + static type empty() { return nullptr; } + static void release(type value) { if (value) TypeSpecificDelete(value);