From e98f1114a04564771d5475ca46127a3bd7fe7265 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 21 Oct 2015 20:59:55 +0100 Subject: mnemonics: misc cleanup Pass relevant information to the base class instead of overwriting default values later, use objects instead of pointers to objects to avoid having to new objects unnecessarily. --- src/mnemonics/italian.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/mnemonics/italian.h') diff --git a/src/mnemonics/italian.h b/src/mnemonics/italian.h index 24ed67442..28cee9d9a 100644 --- a/src/mnemonics/italian.h +++ b/src/mnemonics/italian.h @@ -51,9 +51,7 @@ namespace Language class Italian: public Base { public: - Italian() - { - word_list = new std::vector({ + Italian(): Base("Italian", std::vector({ "abbinare", "abbonato", "abisso", @@ -1680,11 +1678,8 @@ namespace Language "zolfo", "zombie", "zucchero" - }); - unique_prefix_length = 4; - word_map = new std::unordered_map; - trimmed_word_map = new std::unordered_map; - language_name = "Italian"; + }), 4) + { populate_maps(); } }; -- cgit v1.2.3