embedding: replace usage of deprecated find*() with get*()

This commit is contained in:
Mike Blumenkrantz 2014-11-13 15:35:55 -05:00
parent 8b231a26e4
commit 8a4d2949e8
2 changed files with 4 additions and 4 deletions

View file

@ -54,7 +54,7 @@ pub extern "C" fn cef_string_map_find(sm: *mut cef_string_map_t, key: *const cef
if sm.is_null() { return 0; }
let v = string_map_to_treemap(sm);
slice_to_str((*key).str as *const u8, (*key).length as uint, |result| {
match (*v).find(&String::from_str(result)) {
match (*v).get(&String::from_str(result)) {
Some(s) => {
cef_string_utf8_set((**s).str as *const u8, (**s).length, value, 1);
1