mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 04:25:18 +00:00
qemu: qapi: Rename local vars in virQEMUQAPISchemaTraverseObject
Now that 'query' is no longer an argument we can reuse it. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
06283debe3
commit
cea3ed3bb1
@ -86,16 +86,16 @@ virQEMUQAPISchemaTraverseObject(virJSONValuePtr cur,
|
||||
struct virQEMUQAPISchemaTraverseContext *ctxt)
|
||||
{
|
||||
virJSONValuePtr obj;
|
||||
const char *querystr = *ctxt->query;
|
||||
char modifier = *querystr;
|
||||
const char *query = *ctxt->query;
|
||||
char modifier = *query;
|
||||
|
||||
if (!c_isalpha(modifier))
|
||||
querystr++;
|
||||
query++;
|
||||
|
||||
if (modifier == '+') {
|
||||
obj = virQEMUQAPISchemaObjectGet("variants", querystr, "case", cur);
|
||||
obj = virQEMUQAPISchemaObjectGet("variants", query, "case", cur);
|
||||
} else {
|
||||
obj = virQEMUQAPISchemaObjectGet("members", querystr, "name", cur);
|
||||
obj = virQEMUQAPISchemaObjectGet("members", query, "name", cur);
|
||||
|
||||
if (modifier == '*' &&
|
||||
!virJSONValueObjectHasKey(obj, "default"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user