Skip to content

Commit 71aba03

Browse files
committed
silence clang_tidy suggesting "const auto* const" for it that does not work with MSVC
1 parent d1c09b5 commit 71aba03

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/track/taglib/trackmetadata_file.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,9 @@ FileType stringToEnumFileType(
105105
TypePair{"dff"_L1, FileType::DSDIFF},
106106
TypePair{"dsdiff"_L1, FileType::DSDIFF}};
107107

108-
const auto it = std::find_if(lookupTable.cbegin(),
108+
// NOLINTNEXTLINE(readability-qualified-auto)
109+
const auto it = std::find_if(
110+
lookupTable.cbegin(),
109111
lookupTable.cend(),
110112
[fileType](const auto& pair) { return pair.strType == fileType; });
111113
return it != lookupTable.end() ? it->eType : FileType::Unknown;

0 commit comments

Comments
 (0)