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_inspect.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'sinksh/syntax_modules/sink_inspect.cpp') diff --git a/sinksh/syntax_modules/sink_inspect.cpp b/sinksh/syntax_modules/sink_inspect.cpp index 355efa3..1d2d90f 100644 --- a/sinksh/syntax_modules/sink_inspect.cpp +++ b/sinksh/syntax_modules/sink_inspect.cpp @@ -243,17 +243,12 @@ Syntax::List syntax() Syntax state("inspect", QObject::tr("Inspect database for the resource requested"), &SinkInspect::inspect, Syntax::NotInteractive); - state.addParameter("resource", - { .name = "resource", .help = "Which resource to inspect", .required = true }); - state.addParameter("db", - { .name = "database", .help = "Which database to inspect"}); - state.addParameter("filter", - { .name = "id", .help = "A specific id to filter the results by (currently not working)"}); + state.addParameter("resource", {"resource", "Which resource to inspect", true}); + state.addParameter("db", {"database", "Which database to inspect"}); + state.addParameter("filter", {"id", "A specific id to filter the results by (currently not working)"}); state.addFlag("showinternal", "Show internal fields only"); - state.addParameter("validaterids", - { .name = "type", .help = "Validate remote Ids of the given type"}); - state.addParameter("fulltext", - { .name = "id", .help = "If 'id' is not given, count the number of fulltext documents. Else, print the terms of the document with the given id"}); + state.addParameter("validaterids", {"type", "Validate remote Ids of the given type"}); + state.addParameter("fulltext", {"id", "If 'id' is not given, count the number of fulltext documents. Else, print the terms of the document with the given id"}); state.completer = &SinkshUtils::resourceCompleter; -- cgit v1.2.3