fixup clang range warnings.

This commit is contained in:
Kelvin Sherlock
2020-11-05 18:53:52 -05:00
parent 3480881001
commit c8310c0dbd
2 changed files with 5 additions and 5 deletions

View File

@@ -1252,13 +1252,13 @@ void Shell()
// load the error code to error mnemonic
ErrorTableInvert.reserve(ErrorTable.size());
for (const auto kv : ErrorTable) {
for (const auto &kv : ErrorTable) {
ErrorTableInvert.emplace(std::make_pair(kv.second, kv.first));
}
// address to function name.
SymbolTableInvert.reserve(SymbolTable.size());
for (const auto kv : SymbolTable) {
for (const auto &kv : SymbolTable) {
SymbolTableInvert.emplace(std::make_pair(kv.second.first, kv.first));
}