mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 15:15:46 +00:00
monitor: Use GString instead of QString for output buffer
GString has a richer set of string operations than QString. It should be preferred to QString except where we need a QObject or reference counting. We don't here. Switch to GString, and put its richer interface to use. Cc: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <20201211171152.146877-3-armbru@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
@ -105,7 +105,7 @@ struct Monitor {
|
||||
* Members that are protected by the per-monitor lock
|
||||
*/
|
||||
QLIST_HEAD(, mon_fd_t) fds;
|
||||
QString *outbuf;
|
||||
GString *outbuf;
|
||||
guint out_watch;
|
||||
/* Read under either BQL or mon_lock, written with BQL+mon_lock. */
|
||||
int mux_out;
|
||||
|
Reference in New Issue
Block a user