diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-02-15 21:40:52 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-02-15 21:40:52 (GMT) |
commit | 44bc44dee791570909b4b3d5f6f6f9f9ac07bba7 (patch) | |
tree | 54f59ca3b3ccc6de3a4225ff486794609a8cb1da /Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot2.cpp | |
parent | 385100e2bc6bda5d18c4fb833e1e757ef5d5c4a0 (diff) | |
download | swift-contrib-44bc44dee791570909b4b3d5f6f6f9f9ac07bba7.zip swift-contrib-44bc44dee791570909b4b3d5f6f6f9f9ac07bba7.tar.bz2 |
Make JID constructor with string implicit.
This avoids the need to explicitly contruct a JID where a string is
used.
Diffstat (limited to 'Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot2.cpp')
-rw-r--r-- | Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot2.cpp b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot2.cpp index bf1c74a..f431245 100644 --- a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot2.cpp +++ b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoBot2.cpp @@ -21,7 +21,7 @@ int main(int, char**) { SimpleEventLoop eventLoop; BoostNetworkFactories networkFactories(&eventLoop); - client = new Client(JID("echobot@wonderland.lit"), "mypass", &networkFactories); + client = new Client("echobot@wonderland.lit", "mypass", &networkFactories); client->onConnected.connect(&handleConnected); client->onMessageReceived.connect(bind(&handleMessageReceived, _1)); client->connect(); |