Skip to content
  • Markus Armbruster's avatar
    f1cc129d
    qobject: Use GString instead of QString to accumulate JSON · f1cc129d
    Markus Armbruster authored
    
    
    QString supports modifying its string, but it's quite limited: you can
    only append.  The remaining callers use it for building an initial
    string, never for modifying it later.
    
    Use of GString for building the initial string is actually more
    convenient here.  Change qobject_to_json() & friends to do that.
    
    Once all such uses are replaced this way, QString can become immutable.
    
    Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
    Message-Id: <20201211171152.146877-5-armbru@redhat.com>
    f1cc129d
    qobject: Use GString instead of QString to accumulate JSON
    Markus Armbruster authored
    
    
    QString supports modifying its string, but it's quite limited: you can
    only append.  The remaining callers use it for building an initial
    string, never for modifying it later.
    
    Use of GString for building the initial string is actually more
    convenient here.  Change qobject_to_json() & friends to do that.
    
    Once all such uses are replaced this way, QString can become immutable.
    
    Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
    Message-Id: <20201211171152.146877-5-armbru@redhat.com>
Loading