diff --git a/gmime-filter-reply.c b/gmime-filter-reply.c index b269db4e..847426bf 100644 --- a/gmime-filter-reply.c +++ b/gmime-filter-reply.c @@ -201,7 +201,7 @@ g_mime_filter_reply_new (gboolean encode) { GMimeFilterReply *new_reply; - new_reply = (GMimeFilterReply *) g_object_newv (GMIME_TYPE_FILTER_REPLY, 0, NULL); + new_reply = (GMimeFilterReply *) g_object_new (GMIME_TYPE_FILTER_REPLY, NULL); new_reply->encode = encode; return (GMimeFilter *) new_reply; 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")) {