Change index parameter type from int to size_t (issue #1491)

This commit is contained in:
Marshall Greenblatt
2016-11-04 14:38:59 -04:00
parent f3a0ff98bb
commit cdd2a40469
19 changed files with 272 additions and 433 deletions

View File

@@ -7,10 +7,10 @@
void transfer_string_list_contents(cef_string_list_t fromList,
StringList& toList)
{
int size = cef_string_list_size(fromList);
size_t size = cef_string_list_size(fromList);
CefString value;
for(int i = 0; i < size; i++) {
for(size_t i = 0; i < size; i++) {
cef_string_list_value(fromList, i, value.GetWritableStruct());
toList.push_back(value);
}
@@ -27,10 +27,10 @@ void transfer_string_list_contents(const StringList& fromList,
void transfer_string_map_contents(cef_string_map_t fromMap,
StringMap& toMap)
{
int size = cef_string_map_size(fromMap);
size_t size = cef_string_map_size(fromMap);
CefString key, value;
for(int i = 0; i < size; ++i) {
for(size_t i = 0; i < size; ++i) {
cef_string_map_key(fromMap, i, key.GetWritableStruct());
cef_string_map_value(fromMap, i, value.GetWritableStruct());
@@ -49,10 +49,10 @@ void transfer_string_map_contents(const StringMap& fromMap,
void transfer_string_multimap_contents(cef_string_multimap_t fromMap,
StringMultimap& toMap)
{
int size = cef_string_multimap_size(fromMap);
size_t size = cef_string_multimap_size(fromMap);
CefString key, value;
for(int i = 0; i < size; ++i) {
for(size_t i = 0; i < size; ++i) {
cef_string_multimap_key(fromMap, i, key.GetWritableStruct());
cef_string_multimap_value(fromMap, i, value.GetWritableStruct());