提交 8d422118 编写于 作者: J Ján Tomko

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: NJán Tomko <jtomko@redhat.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 b6108a04
......@@ -213,18 +213,6 @@
(a) = (a) ^ (b); \
} 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:
* @supported: an OR'ed set of supported flags
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册