summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-10-10 13:38:19 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-10-10 13:38:19 (GMT)
commit5fcadd4e60d2e8bd8866bddef6bcefa59a18adf8 (patch)
tree198eafdec1dce1b7dc6ce21fbbd86bebbd4098cb /Documentation/SwiftenDevelopersGuide/Examples
parent29e4e51e21b8902c82456cc85af46fa5f5889f04 (diff)
downloadswift-contrib-5fcadd4e60d2e8bd8866bddef6bcefa59a18adf8.zip
swift-contrib-5fcadd4e60d2e8bd8866bddef6bcefa59a18adf8.tar.bz2
Move SoftwareVersionResponder constructor arguments to setter.
Diffstat (limited to 'Documentation/SwiftenDevelopersGuide/Examples')
-rw-r--r--Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.cpp b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.cpp
index 98a63d6..d675062 100644
--- a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.cpp
+++ b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot5.cpp
@@ -25,8 +25,8 @@ class EchoBot {
bind(&EchoBot::handlePresenceReceived, this, _1));
tracer = new ClientXMLTracer(client);
//...
- softwareVersionResponder = new SoftwareVersionResponder(
- "EchoBot", "1.0", client->getIQRouter());
+ softwareVersionResponder = new SoftwareVersionResponder(client->getIQRouter());
+ softwareVersionResponder->setVersion("EchoBot", "1.0");
softwareVersionResponder->start();
//...
client->connect();