diff options
author | lloyd <[email protected]> | 2010-10-13 00:56:15 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-10-13 00:56:15 +0000 |
commit | 6e706bfefa04fc28d6c204442ca45982993dc550 (patch) | |
tree | c3a151b6ce91cb5add058b224a925e4f3b8cfb5d /src/libstate | |
parent | c59d960db6d69bd9c479ec674768b7ec371830b5 (diff) |
More size_t
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; |