Skip to content

Commit 1d6896d

Browse files
committed
Avoid names that are easy to confuse: tl and t1
1 parent 95bac60 commit 1d6896d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/t/tags/test_operators.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ TEST_CASE("Ordering of tags") {
4444
}
4545
buffer.commit();
4646

47-
const auto& tl = buffer.get<const osmium::TagList>(0);
48-
const osmium::Tag& t1 = *(tl.begin());
49-
const osmium::Tag& t2 = *(std::next(tl.begin(), 1));
50-
const osmium::Tag& t3 = *(std::next(tl.begin(), 2));
51-
const osmium::Tag& t4 = *(std::next(tl.begin(), 3));
47+
const auto& tag_list = buffer.get<const osmium::TagList>(0);
48+
const osmium::Tag& t1 = *(tag_list.begin());
49+
const osmium::Tag& t2 = *(std::next(tag_list.begin(), 1));
50+
const osmium::Tag& t3 = *(std::next(tag_list.begin(), 2));
51+
const osmium::Tag& t4 = *(std::next(tag_list.begin(), 3));
5252

5353
REQUIRE(t2 < t1);
5454
REQUIRE(t1 < t3);

0 commit comments

Comments
 (0)