Skip to content

Commit 1ced406

Browse files
committed
Comments for bad const-correctness flag in clang-tidy
1 parent a85297f commit 1ced406

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/games/file.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,9 @@ Game GameXMLSavefile::GetGame() const
804804

805805
template <class C> void NormalizeLabels(C &&p_container)
806806
{
807+
// NOLINTBEGIN(misc-const-correctness)
807808
std::map<std::string, std::size_t> counts;
809+
// NOLINTEND(misc-const-correctness)
808810
for (const auto &element : p_container) {
809811
++counts[element->GetLabel()];
810812
}

0 commit comments

Comments
 (0)