Skip to content

Commit 67e38f3

Browse files
committed
token.cpp: use anonymous namespace
1 parent 0380186 commit 67e38f3

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

lib/token.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@
4545
#include <unordered_set>
4646
#include <utility>
4747

48-
struct less {
49-
template<class T, class U>
50-
bool operator()(const T& x, const U& y) const {
51-
return x < y;
52-
}
53-
};
48+
namespace {
49+
struct less {
50+
template<class T, class U>
51+
bool operator()(const T &x, const U &y) const {
52+
return x < y;
53+
}
54+
};
55+
}
5456

5557
const std::list<ValueFlow::Value> TokenImpl::mEmptyValueList;
5658

0 commit comments

Comments
 (0)