summary refs log tree commit diff stats
path: root/monitor/monitor-internal.h
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2020-12-11 18:11:34 +0100
committerMarkus Armbruster <armbru@redhat.com>2020-12-19 10:38:35 +0100
commit20076f4a8c3b275272d0b907f37c126bd91ec1b9 (patch)
treed031d84197d97711dc313f3e066b5657c78780c5 /monitor/monitor-internal.h
parent436054e22f8447692196ddae7012f6083140e461 (diff)
downloadfocaccia-qemu-20076f4a8c3b275272d0b907f37c126bd91ec1b9.tar.gz
focaccia-qemu-20076f4a8c3b275272d0b907f37c126bd91ec1b9.zip
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>
Diffstat (limited to 'monitor/monitor-internal.h')
-rw-r--r--monitor/monitor-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor/monitor-internal.h b/monitor/monitor-internal.h
index a6131554da..40903d6386 100644
--- a/monitor/monitor-internal.h
+++ b/monitor/monitor-internal.h
@@ -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;