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_remove.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'sinksh/syntax_modules/sink_remove.cpp') diff --git a/sinksh/syntax_modules/sink_remove.cpp b/sinksh/syntax_modules/sink_remove.cpp index 999a889..39b3d60 100644 --- a/sinksh/syntax_modules/sink_remove.cpp +++ b/sinksh/syntax_modules/sink_remove.cpp @@ -132,20 +132,19 @@ bool identity(const QStringList &args, State &state) Syntax::List syntax() { Syntax remove("remove", QObject::tr("Remove items in a resource"), &SinkRemove::remove); - - remove.addPositionalArgument({ .name = "type", .help = "The type of entity to remove (mail, event, etc.)" }); - remove.addPositionalArgument({ .name = "resourceId", .help = "The ID of the resource containing the entity" }); - remove.addPositionalArgument({ .name = "objectId", .help = "The ID of the entity to remove" }); + remove.addPositionalArgument({"type", "The type of entity to remove (mail, event, etc.)"}); + remove.addPositionalArgument({"resourceId", "The ID of the resource containing the entity"}); + remove.addPositionalArgument({"objectId", "The ID of the entity to remove"}); Syntax resource("resource", QObject::tr("Removes a resource"), &SinkRemove::resource, Syntax::NotInteractive); - resource.addPositionalArgument({ .name = "id", .help = "The ID of the resource to remove" }); + resource.addPositionalArgument({"id", "The ID of the resource to remove"}); resource.completer = &SinkshUtils::resourceCompleter; Syntax account("account", QObject::tr("Removes a account"), &SinkRemove::account, Syntax::NotInteractive); - account.addPositionalArgument({ .name = "id", .help = "The ID of the account to remove" }); + account.addPositionalArgument({"id", "The ID of the account to remove"}); Syntax identity("identity", QObject::tr("Removes an identity"), &SinkRemove::identity, Syntax::NotInteractive); - identity.addPositionalArgument({ .name = "id", .help = "The ID of the account to remove" }); + identity.addPositionalArgument({"id", "The ID of the account to remove"}); remove.children << resource << account << identity; -- cgit v1.2.3