Preprocessor: Use const_iterator instead of iterator where possible

This commit is contained in:
Daniel Marjamäki 2011-12-08 22:14:11 +01:00
parent 60d828e778
commit 6029e23189
1 changed files with 1 additions and 1 deletions

View File

@ -1539,7 +1539,7 @@ std::string Preprocessor::getcode(const std::string &filedata, const std::string
match = true; match = true;
if (settings) { if (settings) {
typedef std::set<std::string>::iterator It; typedef std::set<std::string>::const_iterator It;
for (It it = settings->userUndefs.begin(); it != settings->userUndefs.end(); ++it) { for (It it = settings->userUndefs.begin(); it != settings->userUndefs.end(); ++it) {
std::string::size_type pos = line.find_first_not_of(' ',8); std::string::size_type pos = line.find_first_not_of(' ',8);
if (pos != std::string::npos) { if (pos != std::string::npos) {