mirror of
https://gitlab.gnome.org/GNOME/calls.git
synced 2024-11-17 07:46:03 +00:00
plugins: use g_autoptr for GError
This commit is contained in:
parent
3f197149a8
commit
7a6b702a31
5 changed files with 11 additions and 11 deletions
|
@ -212,7 +212,7 @@ operation_cb (MMCall *mm_call,
|
||||||
struct CallsMMOperationData *data)
|
struct CallsMMOperationData *data)
|
||||||
{
|
{
|
||||||
gboolean ok;
|
gboolean ok;
|
||||||
GError *error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
ok = data->finish_func (mm_call, res, &error);
|
ok = data->finish_func (mm_call, res, &error);
|
||||||
if (!ok)
|
if (!ok)
|
||||||
|
|
|
@ -303,7 +303,7 @@ dial_cb (MMModemVoice *voice,
|
||||||
CallsMMOrigin *self)
|
CallsMMOrigin *self)
|
||||||
{
|
{
|
||||||
MMCall *call;
|
MMCall *call;
|
||||||
GError *error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
call = mm_modem_voice_create_call_finish (voice, res, &error);
|
call = mm_modem_voice_create_call_finish (voice, res, &error);
|
||||||
if (!call)
|
if (!call)
|
||||||
|
@ -370,7 +370,7 @@ delete_call_cb (MMModemVoice *voice,
|
||||||
struct CallsMMOriginDeleteCallData *data)
|
struct CallsMMOriginDeleteCallData *data)
|
||||||
{
|
{
|
||||||
gboolean ok;
|
gboolean ok;
|
||||||
GError *error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
ok = mm_modem_voice_delete_call_finish (voice, res, &error);
|
ok = mm_modem_voice_delete_call_finish (voice, res, &error);
|
||||||
if (!ok)
|
if (!ok)
|
||||||
|
@ -463,7 +463,7 @@ call_added_list_calls_cb (MMModemVoice *voice,
|
||||||
struct CallsMMOriginCallAddedData *data)
|
struct CallsMMOriginCallAddedData *data)
|
||||||
{
|
{
|
||||||
GList *calls;
|
GList *calls;
|
||||||
GError *error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
calls = mm_modem_voice_list_calls_finish (voice, res, &error);
|
calls = mm_modem_voice_list_calls_finish (voice, res, &error);
|
||||||
if (!calls)
|
if (!calls)
|
||||||
|
@ -585,7 +585,7 @@ list_calls_cb (MMModemVoice *voice,
|
||||||
CallsMMOrigin *self)
|
CallsMMOrigin *self)
|
||||||
{
|
{
|
||||||
GList *calls, *node;
|
GList *calls, *node;
|
||||||
GError *error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
calls = mm_modem_voice_list_calls_finish (voice, res, &error);
|
calls = mm_modem_voice_list_calls_finish (voice, res, &error);
|
||||||
if (!calls)
|
if (!calls)
|
||||||
|
|
|
@ -107,7 +107,7 @@ operation_cb (GDBOVoiceCall *voice_call,
|
||||||
struct CallsCallOperationData *data)
|
struct CallsCallOperationData *data)
|
||||||
{
|
{
|
||||||
gboolean ok;
|
gboolean ok;
|
||||||
GError *error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
ok = data->finish_func (voice_call, res, &error);
|
ok = data->finish_func (voice_call, res, &error);
|
||||||
if (!ok)
|
if (!ok)
|
||||||
|
|
|
@ -67,7 +67,7 @@ dial_cb (GDBOVoiceCallManager *voice,
|
||||||
CallsOfonoOrigin *self)
|
CallsOfonoOrigin *self)
|
||||||
{
|
{
|
||||||
gboolean ok;
|
gboolean ok;
|
||||||
GError *error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
ok = gdbo_voice_call_manager_call_dial_finish
|
ok = gdbo_voice_call_manager_call_dial_finish
|
||||||
(voice, NULL, res, &error);
|
(voice, NULL, res, &error);
|
||||||
|
@ -294,7 +294,7 @@ voice_call_proxy_new_cb (GDBusConnection *connection,
|
||||||
{
|
{
|
||||||
CallsOfonoOrigin *self = data->self;
|
CallsOfonoOrigin *self = data->self;
|
||||||
GDBOVoiceCall *voice_call;
|
GDBOVoiceCall *voice_call;
|
||||||
GError *error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
const gchar *path;
|
const gchar *path;
|
||||||
CallsOfonoCall *call;
|
CallsOfonoCall *call;
|
||||||
|
|
||||||
|
@ -402,7 +402,7 @@ get_calls_cb (GDBOVoiceCallManager *voice,
|
||||||
{
|
{
|
||||||
gboolean ok;
|
gboolean ok;
|
||||||
GVariant *calls_with_properties = NULL;
|
GVariant *calls_with_properties = NULL;
|
||||||
GError *error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
GVariantIter *iter = NULL;
|
GVariantIter *iter = NULL;
|
||||||
const gchar *path;
|
const gchar *path;
|
||||||
GVariant *properties;
|
GVariant *properties;
|
||||||
|
@ -443,7 +443,7 @@ voice_new_cb (GDBusConnection *connection,
|
||||||
GAsyncResult *res,
|
GAsyncResult *res,
|
||||||
CallsOfonoOrigin *self)
|
CallsOfonoOrigin *self)
|
||||||
{
|
{
|
||||||
GError *error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
|
|
||||||
self->voice = gdbo_voice_call_manager_proxy_new_finish
|
self->voice = gdbo_voice_call_manager_proxy_new_finish
|
||||||
(res, &error);
|
(res, &error);
|
||||||
|
|
|
@ -314,7 +314,7 @@ get_modems_cb (GDBOManager *manager,
|
||||||
gboolean ok;
|
gboolean ok;
|
||||||
GVariant *modems;
|
GVariant *modems;
|
||||||
GVariantIter *modems_iter = NULL;
|
GVariantIter *modems_iter = NULL;
|
||||||
GError *error = NULL;
|
g_autoptr (GError) error = NULL;
|
||||||
const gchar *path;
|
const gchar *path;
|
||||||
GVariant *properties;
|
GVariant *properties;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue