mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
internal: delete VIR_STEAL_PTR
Delete the macro to prevent its usage in new code. The GLib version should be used instead: p = g_steal_pointer(&ptr); Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
b6108a04ea
commit
8d42211881
@ -213,18 +213,6 @@
|
|||||||
(a) = (a) ^ (b); \
|
(a) = (a) ^ (b); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/**
|
|
||||||
* VIR_STEAL_PTR:
|
|
||||||
*
|
|
||||||
* Steals pointer passed as second argument into the first argument. Second
|
|
||||||
* argument must not have side effects.
|
|
||||||
*/
|
|
||||||
#define VIR_STEAL_PTR(a, b) \
|
|
||||||
do { \
|
|
||||||
(a) = (b); \
|
|
||||||
(b) = NULL; \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virCheckFlags:
|
* virCheckFlags:
|
||||||
* @supported: an OR'ed set of supported flags
|
* @supported: an OR'ed set of supported flags
|
||||||
|
Loading…
x
Reference in New Issue
Block a user