Markus Armbruster
eab3a4678b
qobject: Change qobject_to_json()'s value to GString
...
qobject_to_json() and qobject_to_json_pretty() build a GString, then
covert it to QString. Just one of the callers actually needs a
QString: qemu_rbd_parse_filename(). A few others need a string they
can modify: qmp_send_response(), qga's send_response(), to_json_str(),
and qmp_fd_vsend_fds(). The remainder just need a string.
Change qobject_to_json() and qobject_to_json_pretty() to return the
GString.
qemu_rbd_parse_filename() now has to convert to QString. All others
save a QString temporary. to_json_str() actually becomes a bit
simpler, because GString provides more convenient modification
functions.
Signed-off-by: Markus Armbruster <armbru@redhat.com >
Message-Id: <20201211171152.146877-6-armbru@redhat.com >
2020-12-19 10:38:43 +01:00
..
2020-12-11 17:52:40 +01:00
2020-10-02 15:46:40 +02:00
2020-12-11 17:52:39 +01:00
2019-10-10 10:56:17 +02:00
2020-07-27 12:37:25 +02:00
2020-09-07 12:31:31 +02:00
2019-10-10 10:56:18 +02:00
2020-09-07 12:31:31 +02:00
2020-11-09 18:42:47 +01:00
2020-09-07 12:31:31 +02:00
2020-05-18 19:05:25 +02:00
2020-07-10 15:18:08 +02:00
2020-09-23 16:07:44 +01:00
2020-09-07 12:31:31 +02:00
2020-10-05 10:59:06 +01:00
2020-05-18 19:05:25 +02:00
2020-05-18 19:05:25 +02:00
2020-10-30 15:21:23 -05:00
2020-09-07 12:31:31 +02:00
2020-10-30 15:21:23 -05:00
2019-09-13 12:18:37 +02:00
2020-11-15 17:04:40 +01:00
2020-11-15 17:04:40 +01:00
2020-12-11 17:52:39 +01:00
2020-05-28 13:15:22 -05:00
2019-06-12 13:20:20 +02:00
2020-11-09 15:44:21 +01:00
2020-11-09 18:42:47 +01:00
2019-06-12 13:20:20 +02:00
2020-12-13 23:56:16 +01:00
2020-09-16 10:33:48 +01:00
2020-09-07 12:31:31 +02:00
2020-12-19 10:20:14 +01:00
2020-11-17 12:26:48 +01:00
2020-12-11 17:52:40 +01:00
2019-06-12 13:18:33 +02:00
2020-12-11 17:52:39 +01:00
2020-03-16 22:07:42 +01:00
2020-10-23 13:42:16 +01:00
2020-10-30 15:21:23 -05:00
2020-10-30 15:22:00 -05:00
2020-11-09 15:44:21 +01:00
2020-09-07 12:31:31 +02:00
2020-11-03 19:06:22 +00:00
2020-07-10 15:18:08 +02:00
2020-03-06 17:15:38 +01:00
2020-12-19 10:20:14 +01:00
2020-09-15 11:05:12 +02:00
2019-10-26 15:38:06 +02:00
2020-11-24 11:29:41 +01:00
2020-09-15 11:05:13 +02:00
2020-10-06 08:34:49 +02:00
2020-05-13 14:20:31 +02:00
2020-11-09 18:42:47 +01:00
2020-11-09 18:42:47 +01:00
2020-09-15 11:05:13 +02:00
2019-04-30 15:29:00 +02:00
2019-04-30 15:29:00 +02:00
2020-07-10 15:18:08 +02:00
2020-07-06 10:34:14 +02:00
2020-12-10 17:16:44 +01:00
2020-07-10 15:18:08 +02:00
2020-12-19 10:38:43 +01:00
2020-07-10 15:18:08 +02:00
2020-10-15 16:06:28 +02:00
2020-09-07 12:31:31 +02:00
2020-07-10 15:18:08 +02:00
2020-10-30 15:21:23 -05:00
2020-12-11 17:52:39 +01:00
2020-09-23 16:07:44 +01:00
2020-11-03 19:06:21 +00:00
2020-08-21 06:18:24 -04:00
2020-07-10 15:18:08 +02:00
2019-06-12 13:20:20 +02:00
2020-04-30 17:51:07 +02:00
2020-09-15 11:05:13 +02:00
2019-04-30 15:29:00 +02:00
2020-10-13 13:33:45 +02:00
2020-11-09 18:42:47 +01:00
2020-11-03 16:24:56 +01:00
2019-06-12 13:18:33 +02:00
2018-08-28 18:21:38 +02:00