reserve the inverted error table.

This commit is contained in:
Kelvin Sherlock 2014-12-25 18:39:01 -05:00
parent 22a8d6f588
commit 45269178b4

View File

@ -1207,6 +1207,7 @@ void Shell()
// load the error code to error mnemonic
ErrorTableInvert.reserve(ErrorTable.size());
for (const auto kv : ErrorTable) {
ErrorTableInvert.emplace(std::make_pair(kv.second, kv.first));
}