Skip to content

Commit

Permalink
Avoid copying parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Dec 14, 2024
1 parent e8f0247 commit da20a50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/t/index/test_dump_and_load_index.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ using sparse_file_array = osmium::index::map::SparseFileArray<osmium::unsigned_o
namespace {

template <class TMemoryIndex, class TFileIndex>
void test_index(std::function<void(TMemoryIndex&, const int)> dump_method) {
void test_index(const std::function<void(TMemoryIndex&, const int)>& dump_method) {
const int fd = osmium::detail::create_tmp_file();
REQUIRE(osmium::file_size(fd) == 0);
const osmium::unsigned_object_id_type id1 = 12;
Expand Down
2 changes: 1 addition & 1 deletion test/t/tags/test_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace {

template <class TFilter>
void check_filter(const osmium::TagList& tag_list,
const TFilter filter,
const TFilter& filter,
const std::vector<bool>& reference) {
REQUIRE(tag_list.size() == reference.size());
auto t_it = tag_list.begin();
Expand Down

0 comments on commit da20a50

Please sign in to comment.