1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-17 03:50:03 +02:00

cli/src/main.cpp: use new C++11 syntax to loop over vectors.

This commit is contained in:
Henrik Hautakoski 2022-09-22 10:11:06 +02:00
parent 8e2378cfe8
commit 1ca85a37b8

View file

@ -180,19 +180,19 @@ int main(int argc, char **argv) {
eoskeygen::console::disable_color = true;
}
for(auto it = dict_list.begin(); it != dict_list.end(); it++) {
for (auto item : dict_list) {
eoskeygen::Dictionary d;
if (d.loadFromFile(*it)) {
if (d.loadFromFile(item)) {
dict.add(d);
} 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;
std::string filename(CONFIG_SHARE_FULL_PATH "/dicts/" + *it);
std::string filename(CONFIG_SHARE_FULL_PATH "/dicts/" + item);
if (d.loadFromFile(filename)) {
dict.add(d);