From 256b5beb89d2c67d74d80a6f1a0f0dad074911e3 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 3 Aug 2018 22:43:54 +0200 Subject: Removed the use of C99 extensions --- sinksh/syntax_modules/sink_modify.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'sinksh/syntax_modules/sink_modify.cpp') diff --git a/sinksh/syntax_modules/sink_modify.cpp b/sinksh/syntax_modules/sink_modify.cpp index 6cda5ab..173d65e 100644 --- a/sinksh/syntax_modules/sink_modify.cpp +++ b/sinksh/syntax_modules/sink_modify.cpp @@ -101,17 +101,15 @@ bool resource(const QStringList &args, State &state) Syntax::List syntax() { Syntax modify("modify", QObject::tr("Modify items in a resource"), &SinkModify::modify); - modify.addPositionalArgument({ .name = "type", .help = "The type of entity to modify (mail, event, etc.)" }); - modify.addPositionalArgument({ .name = "resourceId", .help = "The ID of the resource containing the entity" }); - modify.addPositionalArgument({ .name = "objectId", .help = "The ID of the entity" }); - modify.addPositionalArgument( - { .name = "key value", .help = "Attributes and values to modify", .required = false, .variadic = true }); + modify.addPositionalArgument({"type", "The type of entity to modify (mail, event, etc.)"}); + modify.addPositionalArgument({"resourceId", "The ID of the resource containing the entity"}); + modify.addPositionalArgument({"objectId", "The ID of the entity"}); + modify.addPositionalArgument({"key value", "Attributes and values to modify", false, true }); Syntax resource("resource", QObject::tr("Modify a resource"), &SinkModify::resource);//, Syntax::EventDriven); - resource.addPositionalArgument({ .name = "id", .help = "The ID of the resource" }); - resource.addPositionalArgument( - { .name = "key value", .help = "Attributes and values to modify", .required = false, .variadic = true }); + resource.addPositionalArgument({"id", "The ID of the resource" }); + resource.addPositionalArgument({"key value", "Attributes and values to modify", false, true}); resource.completer = &SinkshUtils::resourceOrTypeCompleter; modify.children << resource; -- cgit v1.2.3