Skip to content

Commit 69c9a2b

Browse files
committed
fix clang-format in examples
1 parent 0bd754d commit 69c9a2b

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

examples/dynamic_pointcloud_example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ void kdtree_demo(const size_t N)
116116
const num_t radiusSqr = 1;
117117
std::vector<nanoflann::ResultItem<size_t, num_t>> indices_dists;
118118
nanoflann::RadiusResultSet<num_t, size_t> resultSet(
119-
radiusSqr, indices_dists);
119+
radiusSqr, indices_dists);
120120

121121
index.findNeighbors(resultSet, query_pt);
122122

examples/pointcloud_adaptor_example.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ void kdtree_demo(const size_t N)
101101

102102
dump_mem_usage();
103103

104-
auto do_knn_search = [](const my_kd_tree_t& index) {
104+
auto do_knn_search = [](const my_kd_tree_t& index)
105+
{
105106
// do a knn search
106107
const size_t num_results = 1;
107108
size_t ret_index;

examples/pointcloud_example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ void kdtree_demo(const size_t N)
7878
const num_t squaredRadius = 1;
7979
std::vector<nanoflann::ResultItem<size_t, num_t>> indices_dists;
8080
nanoflann::RadiusResultSet<num_t, size_t> resultSet(
81-
squaredRadius, indices_dists);
81+
squaredRadius, indices_dists);
8282

8383
index.findNeighbors(resultSet, query_pt);
8484

0 commit comments

Comments
 (0)