codestyle: get rid of CALLS_SET_PTR_PROPERTY macro

One more step towards fixing #214
In `calls-ofono-call.c` the changed code also adheres to the newly introduced
coding style.
This commit is contained in:
Evangelos Ribeiro Tzaras
2021-04-12 11:33:57 +02:00
parent 042478a8eb
commit 868d9e36da
3 changed files with 6 additions and 13 deletions

View File

@@ -25,7 +25,6 @@
#include "calls-ofono-call.h"
#include "calls-call.h"
#include "calls-message-source.h"
#include "util.h"
#include <glib/gi18n.h>
@@ -287,11 +286,10 @@ static void
disconnect_reason_cb (CallsOfonoCall *self,
const gchar *reason)
{
if (reason)
{
CALLS_SET_PTR_PROPERTY (self->disconnect_reason,
g_strdup (reason));
}
if (reason) {
g_free (self->disconnect_reason);
self->disconnect_reason = g_strdup (reason);
}
}