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_count.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sinksh/syntax_modules/sink_count.cpp') diff --git a/sinksh/syntax_modules/sink_count.cpp b/sinksh/syntax_modules/sink_count.cpp index 1edf1c2..f16b92b 100644 --- a/sinksh/syntax_modules/sink_count.cpp +++ b/sinksh/syntax_modules/sink_count.cpp @@ -66,12 +66,9 @@ bool count(const QStringList &args, State &state) Syntax::List syntax() { Syntax count("count", QObject::tr("Returns the number of items of a given type in a resource"), &SinkCount::count, Syntax::EventDriven); - - count.addPositionalArgument({.name = "type", .help = "The entity type to count"}); - count.addPositionalArgument({.name = "resource", .help = "A resource id where to count", .required = false}); - + count.addPositionalArgument({"type", "The entity type to count"}); + count.addPositionalArgument({"resource", "A resource id where to count", false}); count.completer = &SinkshUtils::typeCompleter; - return Syntax::List() << count; } -- cgit v1.2.3