diff options
| author | Thomas Haller <thaller@redhat.com> | 2018-03-19 13:12:28 +0100 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2018-03-19 15:27:08 +0100 |
| commit | 9545a8bc341c4a326a2115b35e8b53ea6376cc31 (patch) | |
| tree | 314492b04c6a2efb64736a09208db54e46a36d02 /src/settings | |
| parent | 9c4919be764493b35553583723f77018e7974569 (diff) | |
| download | NetworkManager-9545a8bc341c4a326a2115b35e8b53ea6376cc31.tar.gz | |
all: don't explicitly cast destroy function for g_clear_pointer()
The g_clear_pointer() macro already contains a cast to GDestroyNotify. No
need to do it ourself. In fact, with the cast, this only works with the
particular g_clear_pointer() implementation, that first assigns the
destroy function to a local variable.
See-also: https://bugzilla.gnome.org/show_bug.cgi?id=674634#c52
Diffstat (limited to 'src/settings')
| -rw-r--r-- | src/settings/nm-settings-connection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings/nm-settings-connection.c b/src/settings/nm-settings-connection.c index 6878fb7fb9..713395420e 100644 --- a/src/settings/nm-settings-connection.c +++ b/src/settings/nm-settings-connection.c @@ -3021,7 +3021,7 @@ dispose (GObject *object) g_slist_free_full (priv->pending_auths, (GDestroyNotify) nm_auth_chain_unref); priv->pending_auths = NULL; - g_clear_pointer (&priv->seen_bssids, (GDestroyNotify) g_hash_table_destroy); + g_clear_pointer (&priv->seen_bssids, g_hash_table_destroy); set_visible (self, FALSE); |
