diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-21 20:59:55 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-25 11:51:04 +0000 |
commit | e98f1114a04564771d5475ca46127a3bd7fe7265 (patch) | |
tree | 91b56742a5ec02caf7789dc69006ca1c5fce2fc6 /src/mnemonics/japanese.h | |
parent | Merge pull request #1924 (diff) | |
download | monero-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/japanese.h')
-rw-r--r-- | src/mnemonics/japanese.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mnemonics/japanese.h b/src/mnemonics/japanese.h index b437ae2af..09d05d132 100644 --- a/src/mnemonics/japanese.h +++ b/src/mnemonics/japanese.h @@ -51,9 +51,7 @@ namespace Language class Japanese: public Base
{
public:
- Japanese()
- {
- word_list = new std::vector<std::string>({
+ Japanese(): Base("Japanese", std::vector<std::string>({
"あいこくしん",
"あいさつ",
"あいだ",
@@ -1680,11 +1678,8 @@ namespace Language "ひさん",
"びじゅつかん",
"ひしょ"
- });
- unique_prefix_length = 3;
- word_map = new std::unordered_map<std::string, uint32_t>;
- trimmed_word_map = new std::unordered_map<std::string, uint32_t>;
- language_name = "Japanese";
+ }), 3)
+ {
populate_maps();
}
};
|