Prefer unordered_map

This commit is contained in:
rthomas 2020-05-11 09:44:54 +02:00
parent 6fd553114d
commit b99e791be6

View File

@ -13,14 +13,14 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
#include <map> #include <unordered_map>
#include "LIEF/PE/signature/OIDToString.hpp" #include "LIEF/PE/signature/OIDToString.hpp"
namespace LIEF { namespace LIEF {
namespace PE { namespace PE {
const char* oid_to_string(const oid_t& oid) { const char* oid_to_string(const oid_t& oid) {
const std::map<oid_t, const char*> oid_to_str { const std::unordered_map<oid_t, const char*> oid_to_str {
{ "0.2.262.1.10", "TELESEC" }, { "0.2.262.1.10", "TELESEC" },
{ "0.2.262.1.10.0", "EXTENSION" }, { "0.2.262.1.10.0", "EXTENSION" },
{ "0.2.262.1.10.1", "MECHANISM" }, { "0.2.262.1.10.1", "MECHANISM" },