1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-10-27 11:34:09 +03:00

Use g_autoptr instead of VIR_AUTOPTR

Since commit 44e7f02915
    util: rewrite auto cleanup macros to use glib's equivalent

VIR_AUTOPTR aliases to g_autoptr. Replace all of its use by the GLib
macro version.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Ján Tomko
2019-10-15 14:47:50 +02:00
parent 8334203f91
commit 45678bd70a
123 changed files with 527 additions and 527 deletions

View File

@@ -18,9 +18,9 @@ testParseFormatFW(const void *opaque)
{
const char *filename = opaque;
g_autofree char *path = NULL;
VIR_AUTOPTR(qemuFirmware) fw = NULL;
g_autoptr(qemuFirmware) fw = NULL;
g_autofree char *buf = NULL;
VIR_AUTOPTR(virJSONValue) json = NULL;
g_autoptr(virJSONValue) json = NULL;
g_autofree char *expected = NULL;
g_autofree char *actual = NULL;