Skip to content

Commit 2b5a461

Browse files
committed
Fix clang-tidy complaints about value parameters
1 parent 4f27b1c commit 2b5a461

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/geom-functions.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ namespace {
125125

126126
void set_to_same_type(geometry_t *output, geometry_t const &input)
127127
{
128+
// NOLINTNEXTLINE(performance-unnecessary-value-param)
128129
input.visit([&](auto in) { output->set<decltype(in)>(); });
129130
}
130131

@@ -434,7 +435,7 @@ class split_visitor
434435
{}
435436

436437
template <typename T>
437-
void operator()(T) const
438+
void operator()(T const &) const
438439
{}
439440

440441
// false positive https://github.com/llvm/llvm-project/issues/74738
@@ -544,8 +545,9 @@ namespace {
544545
* empty, do not add the first point returned by *it.
545546
*/
546547
template <typename ITERATOR>
547-
void add_nodes_to_linestring(linestring_t *linestring, ITERATOR it,
548-
ITERATOR end)
548+
void add_nodes_to_linestring(
549+
linestring_t *linestring, ITERATOR it,
550+
ITERATOR end) // NOLINT(performance-unnecessary-value-param)
549551
{
550552
if (!linestring->empty()) {
551553
assert(it != end);

0 commit comments

Comments
 (0)