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_livequery.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sinksh/syntax_modules/sink_livequery.cpp') diff --git a/sinksh/syntax_modules/sink_livequery.cpp b/sinksh/syntax_modules/sink_livequery.cpp index 2d8d5d0..42d7d33 100644 --- a/sinksh/syntax_modules/sink_livequery.cpp +++ b/sinksh/syntax_modules/sink_livequery.cpp @@ -127,13 +127,13 @@ Syntax::List syntax() { Syntax list("livequery", QObject::tr("Run a livequery."), &SinkLiveQuery::livequery, Syntax::EventDriven); - list.addPositionalArgument({ .name = "type", .help = "The type to run the livequery on" }); - list.addParameter("resource", { .name = "resource", .help = "Filter the livequery to the given resource" }); + list.addPositionalArgument({"type", "The type to run the livequery on" }); + list.addParameter("resource", {"resource", "Filter the livequery to the given resource" }); list.addFlag("compact", "Use a compact view (reduces the size of IDs)"); - list.addParameter("filter", { .name = "property=$value", .help = "Filter the results" }); - list.addParameter("id", { .name = "id", .help = "List only the content with the given ID" }); + list.addParameter("filter", {"property=$value", "Filter the results" }); + list.addParameter("id", {"id", "List only the content with the given ID" }); list.addFlag("showall", "Show all properties"); - list.addParameter("show", { .name = "property", .help = "Only show the given property" }); + list.addParameter("show", {"property", "Only show the given property" }); list.completer = &SinkshUtils::resourceOrTypeCompleter; return Syntax::List() << list; -- cgit v1.2.3