mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Micro-optimization.
This commit is contained in:
parent
b627b8701b
commit
fc9e6326b9
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user