Skip to content

Commit 1a94b87

Browse files
committed
preprocessor: Improved constness of local variable.
1 parent c79bc6c commit 1a94b87

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/preprocessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,7 @@ std::list<std::string> Preprocessor::getcfgs(const std::string &filedata, const
14441444

14451445
// Get name of define
14461446
std::string defineName(*it2);
1447-
std::string::size_type end = defineName.find_first_of("=(");
1447+
const std::string::size_type end = defineName.find_first_of("=(");
14481448
if (end != std::string::npos)
14491449
defineName.erase(end);
14501450

0 commit comments

Comments
 (0)