]> git.lyx.org Git - features.git/blobdiff - src/LyX.cpp
Micro-optimization.
[features.git] / src / LyX.cpp
index f06b9709250ffce9181a1f69f923bea60b49ff29..a96531f219a7d330662108d9808b43d8502f42c8 100644 (file)
@@ -763,7 +763,9 @@ void cleanDuplicateEnvVars()
        }
 
        // Loop over the list of duplicated variables
-       for (std::set<std::string>::iterator dupe = dupes.begin(); dupe != dupes.end(); ++dupe) {
+       std::set<std::string>::iterator dupe = dupes.begin();
+       std::set<std::string>::iterator const dend = dupes.end();       
+       for (; dupe != dend; ++dupe) {
                const char *name = (*dupe).c_str();
                char *val = getenv(name);
                if (val != NULL) {