summaryrefslogtreecommitdiff
path: root/cpp/demo/Glacier2/chat/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Glacier2/chat/Server.cpp')
-rwxr-xr-xcpp/demo/Glacier2/chat/Server.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/cpp/demo/Glacier2/chat/Server.cpp b/cpp/demo/Glacier2/chat/Server.cpp
index e2a26e34c21..53c811a3b64 100755
--- a/cpp/demo/Glacier2/chat/Server.cpp
+++ b/cpp/demo/Glacier2/chat/Server.cpp
@@ -21,7 +21,7 @@ public:
virtual Glacier2::SessionPrx
create(const string& userId, const Glacier2::SessionControlPrx&, const Ice::Current& current)
{
- return Glacier2::SessionPrx::uncheckedCast(current.adapter->addWithUUID(new ChatSessionI(userId)));
+ return Glacier2::SessionPrx::uncheckedCast(current.adapter->addWithUUID(new ChatSessionI(userId)));
}
};
@@ -32,13 +32,13 @@ public:
virtual int
run(int, char*[])
{
- Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("ChatServer");
-
- adapter->add(new ChatSessionManagerI, communicator()->stringToIdentity("ChatSessionManager"));
- adapter->activate();
- communicator()->waitForShutdown();
-
- return EXIT_SUCCESS;
+ Ice::ObjectAdapterPtr adapter = communicator()->createObjectAdapter("ChatServer");
+
+ adapter->add(new ChatSessionManagerI, communicator()->stringToIdentity("ChatSessionManager"));
+ adapter->activate();
+ communicator()->waitForShutdown();
+
+ return EXIT_SUCCESS;
}
};