mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Change index parameter type from int to size_t (issue #1491)
This commit is contained in:
@@ -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());
|
||||
|
||||
|
Reference in New Issue
Block a user