diff options
Diffstat (limited to 'replay/replay-input.c')
-rw-r--r-- | replay/replay-input.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/replay/replay-input.c b/replay/replay-input.c index 9cbb4c19e9..296399c877 100644 --- a/replay/replay-input.c +++ b/replay/replay-input.c @@ -22,15 +22,13 @@ static InputEvent *qapi_clone_InputEvent(InputEvent *src) { - QmpOutputVisitor *qov; Visitor *ov, *iv; QObject *obj; InputEvent *dst = NULL; - qov = qmp_output_visitor_new(); - ov = qmp_output_get_visitor(qov); + ov = qmp_output_visitor_new(&obj); visit_type_InputEvent(ov, NULL, &src, &error_abort); - obj = qmp_output_get_qobject(qov); + visit_complete(ov, &obj); visit_free(ov); if (!obj) { return NULL; |