mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-04 12:03:41 +02:00
cli/src/main.cpp: use new C++11 syntax to loop over vectors.
This commit is contained in:
parent
8e2378cfe8
commit
1ca85a37b8
1 changed files with 5 additions and 5 deletions
|
|
@ -180,19 +180,19 @@ int main(int argc, char **argv) {
|
||||||
eoskeygen::console::disable_color = true;
|
eoskeygen::console::disable_color = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
for(auto it = dict_list.begin(); it != dict_list.end(); it++) {
|
for (auto item : dict_list) {
|
||||||
eoskeygen::Dictionary d;
|
eoskeygen::Dictionary d;
|
||||||
|
|
||||||
if (d.loadFromFile(*it)) {
|
if (d.loadFromFile(item)) {
|
||||||
dict.add(d);
|
dict.add(d);
|
||||||
} else {
|
} else {
|
||||||
std::cerr << "Could not load dictionary from file: " << *it << std::endl;
|
std::cerr << "Could not load dictionary from file: " << item << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for(auto it = lang_list.begin(); it != lang_list.end(); it++) {
|
for (auto item : lang_list) {
|
||||||
eoskeygen::Dictionary d;
|
eoskeygen::Dictionary d;
|
||||||
std::string filename(CONFIG_SHARE_FULL_PATH "/dicts/" + *it);
|
std::string filename(CONFIG_SHARE_FULL_PATH "/dicts/" + item);
|
||||||
|
|
||||||
if (d.loadFromFile(filename)) {
|
if (d.loadFromFile(filename)) {
|
||||||
dict.add(d);
|
dict.add(d);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue