mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Return the result of cef_string_utf16_set in string_map.
This commit is contained in:
parent
49e0442459
commit
da53a9c301
1 changed files with 2 additions and 4 deletions
|
@ -45,8 +45,7 @@ pub extern "C" fn cef_string_map_find(sm: *mut cef_string_map_t, key: *const cef
|
|||
slice_to_str((*key).str as *const u8, (*key).length as usize, |result| {
|
||||
match (*sm).get(result) {
|
||||
Some(s) => {
|
||||
cef_string_utf16_set((**s).str as *const u16, (**s).length, value, 1);
|
||||
1
|
||||
cef_string_utf16_set((**s).str as *const u16, (**s).length, value, 1)
|
||||
}
|
||||
None => 0
|
||||
}
|
||||
|
@ -65,8 +64,7 @@ pub extern "C" fn cef_string_map_key(sm: *mut cef_string_map_t, index: c_int, va
|
|||
cef_string_utf16_set(k.as_bytes().as_ptr() as *const u16,
|
||||
k.len() as u64,
|
||||
value,
|
||||
1);
|
||||
1
|
||||
1)
|
||||
},
|
||||
None => 0,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue