From 188460a91bd37ca6f18fb89e448819b642953be7 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 4 May 2017 04:08:15 +0300 Subject: code style & refactoring --- utils/data_parsers.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'utils/data_parsers.hpp') diff --git a/utils/data_parsers.hpp b/utils/data_parsers.hpp index 33c766a..e4f0ae2 100644 --- a/utils/data_parsers.hpp +++ b/utils/data_parsers.hpp @@ -11,15 +11,15 @@ #include #include -#include #include +#include static std::istream& operator>>(std::istream& is, aes::Mode& dest) { std::string src; is >> src; - static std::map lookup_table = + static const std::unordered_map lookup_table = { {"ecb", AES_ECB}, {"cbc", AES_CBC}, @@ -42,7 +42,7 @@ static std::istream& operator>>(std::istream& is, aes::Algorithm& dest) std::string src; is >> src; - static std::map lookup_table = + static const std::unordered_map lookup_table = { {"aes128", AES_AES128}, {"aes192", AES_AES192}, -- cgit v1.2.3