Skip to content

Commit 600d893

Browse files
committed
Fix transform lambda
1 parent 3580dff commit 600d893

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/cppcheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ unsigned int CppCheck::checkInternal(const FileWithDetails& file, const std::str
10531053
std::transform(mSettings.library.defines().begin(),
10541054
mSettings.library.defines().end(),
10551055
std::inserter(configDefines, configDefines.end()),
1056-
[](const auto &define) { return define.substr(0, define.find_first_of("( ")); });
1056+
[](const std::string &define) { return define.substr(0, define.find_first_of("( ")); });
10571057

10581058
preprocessor.setLoadCallback([&](simplecpp::FileData &data) {
10591059
// Do preprocessing on included file

0 commit comments

Comments
 (0)