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/french.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/mnemonics/french.h') diff --git a/src/mnemonics/french.h b/src/mnemonics/french.h index 2f6eb7e8a..6cf44a197 100644 --- a/src/mnemonics/french.h +++ b/src/mnemonics/french.h @@ -49,9 +49,7 @@ namespace Language class French: public Base { public: - French() - { - word_list = new std::vector({ + French(): Base("French", std::vector({ "abandon", "abattre", "aboi", @@ -1678,11 +1676,8 @@ namespace Language "zinc", "zone", "zoom" - }); - unique_prefix_length = 4; - word_map = new std::unordered_map; - trimmed_word_map = new std::unordered_map; - language_name = "French"; + }), 4) + { populate_maps(); } }; -- cgit v1.2.3