diff options
| author | David Bremner <david@tethera.net> | 2017-09-03 08:55:42 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-09-04 08:04:44 -0300 |
| commit | 0260ee371ea561d3e6876ab800e934ddeacb3482 (patch) | |
| tree | 90fd6c192a1ef3844bf83c4823b7eec4678d87df /lib | |
| parent | 752653880833fb631ec3e350525d4bdb91efe290 (diff) | |
lib&cli: use g_object_new instead of g_object_newv
'g_object_newv' is deprecated, and prints annoying warnings. The
warnings suggest using 'g_object_new_with_properties', but that's only
available since glib 2.55 (i.e. a month ago as of this writing).
Since we don't actuall pass any properties, it seems we can just call
'g_object_new'.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/index.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/index.cc b/lib/index.cc index 10420d84..2b98b588 100644 --- a/lib/index.cc +++ b/lib/index.cc @@ -261,7 +261,7 @@ notmuch_filter_discard_non_term_new (GMimeContentType *content_type) type = g_type_register_static (GMIME_TYPE_FILTER, "NotmuchFilterDiscardNonTerm", &info, (GTypeFlags) 0); } - filter = (NotmuchFilterDiscardNonTerm *) g_object_newv (type, 0, NULL); + filter = (NotmuchFilterDiscardNonTerm *) g_object_new (type, NULL); filter->content_type = content_type; filter->state = 0; if (g_mime_content_type_is_type (content_type, "text", "html")) { |
