summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Wicking <paul.wicking@qt.io>2018-11-30 17:23:40 +0100
committerPaul Wicking <paul.wicking@qt.io>2018-11-30 16:46:25 +0000
commitd369df14bc634dde9c4c1a101379bb5a536f0332 (patch)
tree55ab9fd1411dac118e6b7a47d773aea2fa1a7d25
parent62ee032065ac40062d4d1d0ed448062e611012ad (diff)
Doc: Add missing closing parenthesis in snippet
Fixes: QTBUG-72111 Change-Id: I6ba29cf15365328cf3fea67521fb97d185d8944f Reviewed-by: Brett Stottlemyer <bstottle@ford.com> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r--src/remoteobjects/doc/snippets/doc_src_simpleswitch.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/remoteobjects/doc/snippets/doc_src_simpleswitch.cpp b/src/remoteobjects/doc/snippets/doc_src_simpleswitch.cpp
index 9257489..5578511 100644
--- a/src/remoteobjects/doc/snippets/doc_src_simpleswitch.cpp
+++ b/src/remoteobjects/doc/snippets/doc_src_simpleswitch.cpp
@@ -129,7 +129,7 @@ int main(int argc, char *argv[])
SimpleSwitch srcSwitch; // create simple switch
- QRemoteObjectHost srcNode(QUrl(QStringLiteral("local:switch")); // create host node without Registry
+ QRemoteObjectHost srcNode(QUrl(QStringLiteral("local:switch"))); // create host node without Registry
srcNode.enableRemoting(&srcSwitch); // enable remoting/sharing
return a.exec();
@@ -142,7 +142,7 @@ REPC_REPLICA = simpleswitch.rep
//! [simpleSwitch_clientremotenode_example1]
QRemoteObjectNode repNode; // create remote object node
-repNode.connectToNode(QUrl(QStringLiteral("local:switch")); // connect with remote host node
+repNode.connectToNode(QUrl(QStringLiteral("local:switch"))); // connect with remote host node
//! [simpleSwitch_clientremotenode_example1]
//! [simpleSwitch_clientacquirereplica_example1]
@@ -228,7 +228,7 @@ int main(int argc, char *argv[])
QSharedPointer<SimpleSwitchReplica> ptr; // shared pointer to hold source replica
QRemoteObjectNode repNode; // create remote object node
- repNode.connectToNode(QUrl(QStringLiteral("local:switch")); // connect with remote host node
+ repNode.connectToNode(QUrl(QStringLiteral("local:switch"))); // connect with remote host node
ptr.reset(repNode.acquire<SimpleSwitchReplica>()); // acquire replica of source from host node
@@ -240,7 +240,7 @@ int main(int argc, char *argv[])
//! [simpleSwitch_dynamicclientnode_example2]
QRemoteObjectNode repNode; // create remote object node
-repNode.connectToNode(QUrl(QStringLiteral("local:switch")); // connect with remote host node
+repNode.connectToNode(QUrl(QStringLiteral("local:switch"))); // connect with remote host node
//! [simpleSwitch_dynamicclientnode_example2]
//! [simpleSwitch_dynamicclientacquirereplica_example2]
@@ -328,7 +328,7 @@ int main(int argc, char *argv[])
QSharedPointer<QRemoteObjectDynamicReplica> ptr; // shared pointer to hold replica
QRemoteObjectNode repNode;
- repNode.connectToNode(QUrl(QStringLiteral("local:switch"));
+ repNode.connectToNode(QUrl(QStringLiteral("local:switch")));
ptr.reset(repNode.acquireDynamic("SimpleSwitch")); // acquire replica of source from host node