| Index: src/base/logging.cc
|
| diff --git a/src/base/logging.cc b/src/base/logging.cc
|
| index c94fe9d6932c23e78d55de84ded35fa5a4cb6578..cadcb6f1de843eae36600138c201bbf60f8866a3 100644
|
| --- a/src/base/logging.cc
|
| +++ b/src/base/logging.cc
|
| @@ -14,8 +14,9 @@
|
| namespace base {
|
|
|
| // Explicit instantiations for commonly used comparisons.
|
| -#define DEFINE_MAKE_CHECK_OP_STRING(type) \
|
| - template std::string* MakeCheckOpString<type, type>(type, type, char const*);
|
| +#define DEFINE_MAKE_CHECK_OP_STRING(type) \
|
| + template std::string* MakeCheckOpString<type, type>( \
|
| + type const&, type const&, char const*);
|
| DEFINE_MAKE_CHECK_OP_STRING(int)
|
| DEFINE_MAKE_CHECK_OP_STRING(long) // NOLINT(runtime/int)
|
| DEFINE_MAKE_CHECK_OP_STRING(long long) // NOLINT(runtime/int)
|
| @@ -28,11 +29,11 @@
|
|
|
|
|
| // Explicit instantiations for floating point checks.
|
| -#define DEFINE_CHECK_OP_IMPL(NAME) \
|
| - template std::string* Check##NAME##Impl<float, float>(float lhs, float rhs, \
|
| - char const* msg); \
|
| - template std::string* Check##NAME##Impl<double, double>( \
|
| - double lhs, double rhs, char const* msg);
|
| +#define DEFINE_CHECK_OP_IMPL(NAME) \
|
| + template std::string* Check##NAME##Impl<float, float>( \
|
| + float const& lhs, float const& rhs, char const* msg); \
|
| + template std::string* Check##NAME##Impl<double, double>( \
|
| + double const& lhs, double const& rhs, char const* msg);
|
| DEFINE_CHECK_OP_IMPL(EQ)
|
| DEFINE_CHECK_OP_IMPL(NE)
|
| DEFINE_CHECK_OP_IMPL(LE)
|
|
|