Fix deprecated range_x() calls.
Test: builds with new libbenchmark.
Change-Id: I91c0e5c1b5cf75b8e551f3c59d83ac9352817c4a
diff --git a/benchmarks/property_benchmark.cpp b/benchmarks/property_benchmark.cpp
index 4e82117..ef5f225 100644
--- a/benchmarks/property_benchmark.cpp
+++ b/benchmarks/property_benchmark.cpp
@@ -142,7 +142,7 @@
};
static void BM_property_get(benchmark::State& state) {
- const size_t nprops = state.range_x();
+ const size_t nprops = state.range(0);
LocalPropertyTestState pa(nprops);
if (!pa.valid) return;
@@ -155,7 +155,7 @@
BENCHMARK(BM_property_get)->TEST_NUM_PROPS;
static void BM_property_find(benchmark::State& state) {
- const size_t nprops = state.range_x();
+ const size_t nprops = state.range(0);
LocalPropertyTestState pa(nprops);
if (!pa.valid) return;
@@ -167,7 +167,7 @@
BENCHMARK(BM_property_find)->TEST_NUM_PROPS;
static void BM_property_read(benchmark::State& state) {
- const size_t nprops = state.range_x();
+ const size_t nprops = state.range(0);
LocalPropertyTestState pa(nprops);
if (!pa.valid) return;
@@ -190,7 +190,7 @@
BENCHMARK(BM_property_read)->TEST_NUM_PROPS;
static void BM_property_serial(benchmark::State& state) {
- const size_t nprops = state.range_x();
+ const size_t nprops = state.range(0);
LocalPropertyTestState pa(nprops);
if (!pa.valid) return;