Preprocessor: Use const_iterator instead of iterator where possible
This commit is contained in:
parent
60d828e778
commit
6029e23189
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue