preprocessor: Improved constness of local variable.

This commit is contained in:
orbitcowboy 2015-12-02 13:58:24 +01:00
parent c79bc6c59d
commit 1a94b876f1
1 changed files with 1 additions and 1 deletions

View File

@ -1444,7 +1444,7 @@ std::list<std::string> Preprocessor::getcfgs(const std::string &filedata, const
// Get name of define // Get name of define
std::string defineName(*it2); 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) if (end != std::string::npos)
defineName.erase(end); defineName.erase(end);