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/init.cpp | |
parent | c59d960db6d69bd9c479ec674768b7ec371830b5 (diff) |
More size_t
Diffstat (limited to 'src/libstate/init.cpp')
-rw-r--r-- | src/libstate/init.cpp | 10 |
1 files changed, 5 insertions, 5 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]; } |