diff options
author | Remko Tronçon <git@el-tramo.be> | 2013-08-15 14:22:38 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2013-08-15 14:26:58 (GMT) |
commit | 1c1056b42d092f943735a1fe033f295ac5b27a77 (patch) | |
tree | 18895760ed5090f1eda2d5d58c5cfab6421db481 /Documentation | |
parent | 1e5b6e73e6b5d2a4973174cda334fbc9ce47db91 (diff) | |
download | swift-1c1056b42d092f943735a1fe033f295ac5b27a77.zip swift-1c1056b42d092f943735a1fe033f295ac5b27a77.tar.bz2 |
Make (Core)Component constructor consistent with (Core)Client.
Change-Id: I268e15b6fbf54d9b188a699d26d2bb1042174f5f
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoComponent.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoComponent.cpp b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoComponent.cpp index 397bc21..a6e6ca0 100644 --- a/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoComponent.cpp +++ b/Documentation/SwiftenDevelopersGuide/Examples/EchoBot/EchoComponent.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Remko Tronçon + * Copyright (c) 2010-2013 Remko Tronçon * Licensed under the GNU General Public License v3. * See Documentation/Licenses/GPLv3.txt for more information. */ @@ -14,9 +14,8 @@ using namespace boost; class EchoComponent { public: - EchoComponent(EventLoop* eventLoop, NetworkFactories* networkFactories) : jid("echo.wonderland.lit") { - component = new Component(eventLoop, networkFactories, - jid, "EchoSecret"); + EchoComponent(NetworkFactories* networkFactories) : jid("echo.wonderland.lit") { + component = new Component(jid, "EchoSecret", networkFactories); component->onConnected.connect(bind(&EchoComponent::handleConnected, this)); component->onMessageReceived.connect( bind(&EchoComponent::handleMessageReceived, this, _1)); @@ -62,7 +61,7 @@ int main(int, char**) { SimpleEventLoop eventLoop; BoostNetworkFactories networkFactories(&eventLoop); - EchoComponent bot(&eventLoop, &networkFactories); + EchoComponent bot(&networkFactories); eventLoop.run(); return 0; |