summaryrefslogtreecommitdiffstats
path: root/sinksh/syntax_modules/sink_sync.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-03 22:43:54 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-03 22:43:54 +0200
commit256b5beb89d2c67d74d80a6f1a0f0dad074911e3 (patch)
tree23326dfe10e290417f823803c75628327f727636 /sinksh/syntax_modules/sink_sync.cpp
parent50bed81038f10091d35c5719df8078612393ae95 (diff)
downloadsink-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.cpp6
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