diff options
author | Bernard Normier <bernard@zeroc.com> | 2007-02-01 17:09:49 +0000 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2007-02-01 17:09:49 +0000 |
commit | abada90e3f84dc703b8ddc9efcbed8a946fadead (patch) | |
tree | 2c6f9dccd510ea97cb927a7bd635422efaae547a /cpp/demo/book/printer/Client.cpp | |
parent | removing trace message (diff) | |
download | ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.bz2 ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.tar.xz ice-abada90e3f84dc703b8ddc9efcbed8a946fadead.zip |
Expanded tabs into spaces
Diffstat (limited to 'cpp/demo/book/printer/Client.cpp')
-rwxr-xr-x | cpp/demo/book/printer/Client.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/cpp/demo/book/printer/Client.cpp b/cpp/demo/book/printer/Client.cpp index 71f6bb711b2..4928da9a903 100755 --- a/cpp/demo/book/printer/Client.cpp +++ b/cpp/demo/book/printer/Client.cpp @@ -19,28 +19,28 @@ main(int argc, char * argv[]) int status = 0; Ice::CommunicatorPtr ic; try { - ic = Ice::initialize(argc, argv); - Ice::ObjectPrx base = ic->stringToProxy( - "SimplePrinter:default -p 10000"); - PrinterPrx printer = PrinterPrx::checkedCast(base); - if (!printer) - throw "Invalid proxy"; + ic = Ice::initialize(argc, argv); + Ice::ObjectPrx base = ic->stringToProxy( + "SimplePrinter:default -p 10000"); + PrinterPrx printer = PrinterPrx::checkedCast(base); + if (!printer) + throw "Invalid proxy"; - printer->printString("Hello World!"); + printer->printString("Hello World!"); } catch (const Ice::Exception & ex) { - cerr << ex << endl; - status = 1; + cerr << ex << endl; + status = 1; } catch (const char * msg) { - cerr << msg << endl; - status = 1; + cerr << msg << endl; + status = 1; } if (ic) { - try { - ic->destroy(); - } catch (const Ice::Exception & ex) { - cerr << ex << endl; - status = 1; - } + try { + ic->destroy(); + } catch (const Ice::Exception & ex) { + cerr << ex << endl; + status = 1; + } } return status; } |