diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-03 22:43:54 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-03 22:43:54 +0200 |
commit | 256b5beb89d2c67d74d80a6f1a0f0dad074911e3 (patch) | |
tree | 23326dfe10e290417f823803c75628327f727636 /sinksh/syntax_modules/sink_sync.cpp | |
parent | 50bed81038f10091d35c5719df8078612393ae95 (diff) | |
download | sink-256b5beb89d2c67d74d80a6f1a0f0dad074911e3.tar.gz sink-256b5beb89d2c67d74d80a6f1a0f0dad074911e3.zip |
Removed the use of C99 extensions
Diffstat (limited to 'sinksh/syntax_modules/sink_sync.cpp')
-rw-r--r-- | sinksh/syntax_modules/sink_sync.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sinksh/syntax_modules/sink_sync.cpp b/sinksh/syntax_modules/sink_sync.cpp index e13e8f8..8126bd2 100644 --- a/sinksh/syntax_modules/sink_sync.cpp +++ b/sinksh/syntax_modules/sink_sync.cpp | |||
@@ -84,9 +84,9 @@ Syntax::List syntax() | |||
84 | { | 84 | { |
85 | Syntax sync("sync", QObject::tr("Synchronizes a resource."), &SinkSync::sync, Syntax::EventDriven); | 85 | Syntax sync("sync", QObject::tr("Synchronizes a resource."), &SinkSync::sync, Syntax::EventDriven); |
86 | 86 | ||
87 | sync.addPositionalArgument({ .name = "type", .help = "The type of resource to synchronize" }); | 87 | sync.addPositionalArgument({"type", "The type of resource to synchronize"}); |
88 | sync.addPositionalArgument({ .name = "resourceId", .help = "The ID of the resource to synchronize" }); | 88 | sync.addPositionalArgument({"resourceId", "The ID of the resource to synchronize"}); |
89 | sync.addParameter("password", { .name = "password", .help = "The password of the resource", .required = true }); | 89 | sync.addParameter("password", {"password", "The password of the resource", true}); |
90 | 90 | ||
91 | sync.completer = &SinkshUtils::resourceCompleter; | 91 | sync.completer = &SinkshUtils::resourceCompleter; |
92 | 92 | ||