diff options
| author | Amaury Pouly <amaury.pouly@gmail.com> | 2014-02-12 13:13:07 +0100 |
|---|---|---|
| committer | Amaury Pouly <amaury.pouly@gmail.com> | 2014-02-12 13:14:02 +0100 |
| commit | c35e4a4b7d7c4da06f0f38f6f669f05d04f4537a (patch) | |
| tree | 9ab9e5b23d636edceb6bc4916121e0cb86596d39 /utils/hwstub/tools/hwstub_shell.cpp | |
| parent | 0f72c73b5b6f8ef12da726c5a7229f8076cd98f0 (diff) | |
| download | rockbox-c35e4a4b7d7c4da06f0f38f6f669f05d04f4537a.zip rockbox-c35e4a4b7d7c4da06f0f38f6f669f05d04f4537a.tar.gz rockbox-c35e4a4b7d7c4da06f0f38f6f669f05d04f4537a.tar.bz2 rockbox-c35e4a4b7d7c4da06f0f38f6f669f05d04f4537a.tar.xz | |
Fix red
Change-Id: Ib64eb3539e33d4336c298612b4508c4611b80c9e
Diffstat (limited to 'utils/hwstub/tools/hwstub_shell.cpp')
| -rw-r--r-- | utils/hwstub/tools/hwstub_shell.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/utils/hwstub/tools/hwstub_shell.cpp b/utils/hwstub/tools/hwstub_shell.cpp index 3cc6f8c..61cb617 100644 --- a/utils/hwstub/tools/hwstub_shell.cpp +++ b/utils/hwstub/tools/hwstub_shell.cpp @@ -647,13 +647,13 @@ bool my_lua_import_soc(const soc_t& soc) return true; } -bool my_lua_import_soc(const std::list< soc_t >& socs) +bool my_lua_import_soc(const std::vector< soc_t >& socs) { - for(std::list< soc_t >::const_iterator it = socs.begin(); it != socs.end(); ++it) + for(size_t i = 0; i < socs.size(); i++) { if(!g_quiet) - printf("importing %s...\n", it->name.c_str()); - if(!my_lua_import_soc(*it)) + printf("importing %s...\n", socs[i].name.c_str()); + if(!my_lua_import_soc(socs[i])) return false; } return true; @@ -711,7 +711,7 @@ int main(int argc, char **argv) } // load register descriptions - std::list< soc_t > socs; + std::vector< soc_t > socs; for(int i = optind; i < argc; i++) if(!soc_desc_parse_xml(argv[i], socs)) { |