altair-lte: use mm_autoptr instead of g_autoptr
commit 397faef3c5 ("mm-common-helpers: add mm_autoptr helpers for
GRegex and GMatchInfo") introduces mm_autoptr(), which implements
g_autoptr() that isn't available before glib 2.44. This patch fixes the
code to consistently uses mm_autoptr().
This commit is contained in:
committed by
Aleksander Morgado
parent
1cee215f83
commit
0d6e2dc9f5
@@ -71,8 +71,8 @@ gchar *
|
||||
mm_altair_parse_ceer_response (const gchar *response,
|
||||
GError **error)
|
||||
{
|
||||
g_autoptr(GRegex) r = NULL;
|
||||
g_autoptr(GMatchInfo) match_info = NULL;
|
||||
mm_autoptr(GRegex) r = NULL;
|
||||
mm_autoptr(GMatchInfo) match_info = NULL;
|
||||
gchar *ceer_response = NULL;
|
||||
|
||||
|
||||
@@ -136,8 +136,8 @@ mm_altair_parse_cid (const gchar *response, GError **error)
|
||||
MMPco *
|
||||
mm_altair_parse_vendor_pco_info (const gchar *pco_info, GError **error)
|
||||
{
|
||||
g_autoptr(GRegex) regex = NULL;
|
||||
g_autoptr(GMatchInfo) match_info = NULL;
|
||||
mm_autoptr(GRegex) regex = NULL;
|
||||
mm_autoptr(GMatchInfo) match_info = NULL;
|
||||
MMPco *pco = NULL;
|
||||
gint num_matches;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user