preprocessor: Improved constness of local variable.
This commit is contained in:
parent
c79bc6c59d
commit
1a94b876f1
|
@ -1444,7 +1444,7 @@ std::list<std::string> Preprocessor::getcfgs(const std::string &filedata, const
|
|||
|
||||
// Get name of define
|
||||
std::string defineName(*it2);
|
||||
std::string::size_type end = defineName.find_first_of("=(");
|
||||
const std::string::size_type end = defineName.find_first_of("=(");
|
||||
if (end != std::string::npos)
|
||||
defineName.erase(end);
|
||||
|
||||
|
|
Loading…
Reference in New Issue