mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-22 04:30:37 +01:00
platform: use nm_g_hash_table_add() compat wrapper in _nmp_cache_update_add()
This commit is contained in:
parent
9fdc5e6596
commit
1ef431ab38
1 changed files with 1 additions and 5 deletions
|
|
@ -1303,12 +1303,8 @@ _nmp_cache_update_add (NMPCache *cache, NMPObject *obj)
|
|||
nm_assert (!obj->is_cached);
|
||||
nmp_object_ref (obj);
|
||||
nm_assert (!nm_multi_index_lookup_first_by_value (cache->idx_multi, &obj->object));
|
||||
#if GLIB_CHECK_VERSION(2, 40, 0)
|
||||
if (!g_hash_table_add (cache->idx_main, obj))
|
||||
if (!nm_g_hash_table_add (cache->idx_main, obj))
|
||||
g_assert_not_reached ();
|
||||
#else
|
||||
g_hash_table_add (cache->idx_main, obj);
|
||||
#endif
|
||||
obj->is_cached = TRUE;
|
||||
_nmp_cache_update_cache (cache, obj, FALSE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue