Skip to content

Commit

Permalink
Merge pull request #88 from masterleinad/fix_clang_tidy_warning
Browse files Browse the repository at this point in the history
Fix a few clang-tidy complaints
  • Loading branch information
dalg24 committed Aug 7, 2019
2 parents 4f8e1a9 + d89ae54 commit 6f49b54
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/bvh_driver/bvh_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,8 @@ void BM_construction(benchmark::State &state)
{
using DeviceType = typename TreeType::device_type;
int const n_values = state.range(0);
PointCloudType point_cloud_type = static_cast<PointCloudType>(state.range(1));
auto points = constructPoints<DeviceType>(n_values, point_cloud_type);
auto const point_cloud_type = static_cast<PointCloudType>(state.range(1));
auto const points = constructPoints<DeviceType>(n_values, point_cloud_type);

for (auto _ : state)
{
Expand All @@ -152,9 +152,9 @@ void BM_knn_search(benchmark::State &state)
int const n_values = state.range(0);
int const n_queries = state.range(1);
int const n_neighbors = state.range(2);
PointCloudType const source_point_cloud_type =
auto const source_point_cloud_type =
static_cast<PointCloudType>(state.range(3));
PointCloudType const target_point_cloud_type =
auto const target_point_cloud_type =
static_cast<PointCloudType>(state.range(4));

TreeType index(
Expand Down Expand Up @@ -182,9 +182,9 @@ void BM_radius_search(benchmark::State &state)
int const n_queries = state.range(1);
int const n_neighbors = state.range(2);
int const buffer_size = state.range(3);
PointCloudType const source_point_cloud_type =
auto const source_point_cloud_type =
static_cast<PointCloudType>(state.range(4));
PointCloudType const target_point_cloud_type =
auto const target_point_cloud_type =
static_cast<PointCloudType>(state.range(5));

TreeType index(
Expand Down

0 comments on commit 6f49b54

Please sign in to comment.