CommandLineInterface::link(): Rename confusingly named "name" to "foundPlaceholder"

This commit is contained in:
Kamil Śliwak 2020-11-14 00:20:52 +01:00
parent 61425e3541
commit bd1989bd0b

View File

@ -1786,14 +1786,14 @@ bool CommandLineInterface::link()
return false; return false;
} }
string name(it, it + placeholderSize); string foundPlaceholder(it, it + placeholderSize);
if (librariesReplacements.count(name)) if (librariesReplacements.count(foundPlaceholder))
{ {
string hexStr(toHex(librariesReplacements.at(name).asBytes())); string hexStr(toHex(librariesReplacements.at(foundPlaceholder).asBytes()));
copy(hexStr.begin(), hexStr.end(), it); copy(hexStr.begin(), hexStr.end(), it);
} }
else else
serr() << "Reference \"" << name << "\" in file \"" << src.first << "\" still unresolved." << endl; serr() << "Reference \"" << foundPlaceholder << "\" in file \"" << src.first << "\" still unresolved." << endl;
it += placeholderSize; it += placeholderSize;
} }
// Remove hints for resolved libraries. // Remove hints for resolved libraries.