diff options
Diffstat (limited to 'src/libstate')
-rw-r--r-- | src/libstate/init.cpp | 10 | ||||
-rw-r--r-- | src/libstate/libstate.cpp | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/libstate/init.cpp b/src/libstate/init.cpp index e2139f42e..7cdc615bd 100644 --- a/src/libstate/init.cpp +++ b/src/libstate/init.cpp @@ -20,21 +20,21 @@ void LibraryInitializer::initialize(const std::string& arg_string) bool thread_safe = false; const std::vector<std::string> arg_list = split_on(arg_string, ' '); - for(u32bit j = 0; j != arg_list.size(); ++j) + for(size_t i = 0; i != arg_list.size(); ++i) { - if(arg_list[j].size() == 0) + if(arg_list[i].size() == 0) continue; std::string name, value; - if(arg_list[j].find('=') == std::string::npos) + if(arg_list[i].find('=') == std::string::npos) { - name = arg_list[j]; + name = arg_list[i]; value = "true"; } else { - std::vector<std::string> name_and_value = split_on(arg_list[j], '='); + std::vector<std::string> name_and_value = split_on(arg_list[i], '='); name = name_and_value[0]; value = name_and_value[1]; } diff --git a/src/libstate/libstate.cpp b/src/libstate/libstate.cpp index a20fc76c6..d086c5cde 100644 --- a/src/libstate/libstate.cpp +++ b/src/libstate/libstate.cpp @@ -288,10 +288,10 @@ Library_State::~Library_State() cached_default_allocator = 0; - for(u32bit j = 0; j != allocators.size(); ++j) + for(size_t i = 0; i != allocators.size(); ++i) { - allocators[j]->destroy(); - delete allocators[j]; + allocators[i]->destroy(); + delete allocators[i]; } delete global_rng_lock; |