mirror of
https://github.com/QuasarApp/LIEF.git
synced 2025-05-20 15:19:33 +00:00
Prefer unordered_map
This commit is contained in:
parent
6fd553114d
commit
b99e791be6
@ -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" },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user