aboutsummaryrefslogtreecommitdiff
path: root/src/mnemonics/french.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-21 20:59:55 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-25 11:51:04 +0000
commite98f1114a04564771d5475ca46127a3bd7fe7265 (patch)
tree91b56742a5ec02caf7789dc69006ca1c5fce2fc6 /src/mnemonics/french.h
parentMerge pull request #1924 (diff)
downloadmonero-e98f1114a04564771d5475ca46127a3bd7fe7265.tar.xz
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.
Diffstat (limited to 'src/mnemonics/french.h')
-rw-r--r--src/mnemonics/french.h11
1 files changed, 3 insertions, 8 deletions
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<std::string>({
+ French(): Base("French", std::vector<std::string>({
"abandon",
"abattre",
"aboi",
@@ -1678,11 +1676,8 @@ namespace Language
"zinc",
"zone",
"zoom"
- });
- unique_prefix_length = 4;
- word_map = new std::unordered_map<std::string, uint32_t>;
- trimmed_word_map = new std::unordered_map<std::string, uint32_t>;
- language_name = "French";
+ }), 4)
+ {
populate_maps();
}
};