summaryrefslogtreecommitdiff
path: root/cpp/demo/Ice/minimal/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/demo/Ice/minimal/Client.cpp')
-rw-r--r--cpp/demo/Ice/minimal/Client.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/cpp/demo/Ice/minimal/Client.cpp b/cpp/demo/Ice/minimal/Client.cpp
index 7009383bef6..583379642ef 100644
--- a/cpp/demo/Ice/minimal/Client.cpp
+++ b/cpp/demo/Ice/minimal/Client.cpp
@@ -21,35 +21,35 @@ main(int argc, char* argv[])
try
{
- communicator = Ice::initialize(argc, argv);
- HelloPrx hello = HelloPrx::checkedCast(communicator->stringToProxy("hello:tcp -p 10000"));
- if(!hello)
- {
- cerr << argv[0] << ": invalid proxy" << endl;
- status = EXIT_FAILURE;
- }
- else
- {
- hello->sayHello();
- }
+ communicator = Ice::initialize(argc, argv);
+ HelloPrx hello = HelloPrx::checkedCast(communicator->stringToProxy("hello:tcp -p 10000"));
+ if(!hello)
+ {
+ cerr << argv[0] << ": invalid proxy" << endl;
+ status = EXIT_FAILURE;
+ }
+ else
+ {
+ hello->sayHello();
+ }
}
catch(const Ice::Exception& ex)
{
- cerr << ex << endl;
- status = EXIT_FAILURE;
+ cerr << ex << endl;
+ status = EXIT_FAILURE;
}
if(communicator)
{
- try
- {
- communicator->destroy();
- }
- catch(const Ice::Exception& ex)
- {
- cerr << ex << endl;
- status = EXIT_FAILURE;
- }
+ try
+ {
+ communicator->destroy();
+ }
+ catch(const Ice::Exception& ex)
+ {
+ cerr << ex << endl;
+ status = EXIT_FAILURE;
+ }
}
return status;