diff --git a/include/benchmark/benchmark.h b/include/benchmark/benchmark.h index dc876768..7dd72e27 100644 --- a/include/benchmark/benchmark.h +++ b/include/benchmark/benchmark.h @@ -674,7 +674,7 @@ class Counter { Counter(double v = 0., Flags f = kDefaults, OneK k = kIs1000) : value(v), flags(f), oneK(k) {} - BENCHMARK_ALWAYS_INLINE operator double const&() const { return value; } + BENCHMARK_ALWAYS_INLINE operator double const &() const { return value; } BENCHMARK_ALWAYS_INLINE operator double&() { return value; } }; diff --git a/src/sysinfo.cc b/src/sysinfo.cc index 46386411..a153b20c 100644 --- a/src/sysinfo.cc +++ b/src/sysinfo.cc @@ -120,7 +120,7 @@ struct ValueUnion { explicit ValueUnion(std::size_t buff_size) : size(sizeof(DataT) + buff_size), - buff(::new(std::malloc(size)) DataT(), &std::free) {} + buff(::new (std::malloc(size)) DataT(), &std::free) {} ValueUnion(ValueUnion&& other) = default;