mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-25 19:30:50 +00:00
reserve the inverted error table.
This commit is contained in:
parent
22a8d6f588
commit
45269178b4
@ -1207,6 +1207,7 @@ void Shell()
|
|||||||
|
|
||||||
|
|
||||||
// load the error code to error mnemonic
|
// 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));
|
ErrorTableInvert.emplace(std::make_pair(kv.second, kv.first));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user