mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Use less error prone string list, map or multimap pointer types
Use pointers to incomplete struct types. If an argument of a not suitable type is passed to a function of any string collection, C compiler will warn: warning: passing argument 1 of <func> from incompatible pointer type C++ compiler will raise an error, for example: error: cannot convert 'cef_string_list_t' ... to 'cef_string_multimap_t' With the previously used `void*` pointer types, such errors in a code were not diagnosed.
This commit is contained in:
committed by
Marshall Greenblatt
parent
f90d5bc49e
commit
c3648f42b2
@ -41,7 +41,7 @@ extern "C" {
|
||||
///
|
||||
/// CEF string maps are a set of key/value string pairs.
|
||||
///
|
||||
typedef void* cef_string_map_t;
|
||||
typedef struct _cef_string_map_t* cef_string_map_t;
|
||||
|
||||
///
|
||||
/// Allocate a new string map.
|
||||
|
Reference in New Issue
Block a user