diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-09-12 02:46:32 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-09-12 02:46:32 +0000 |
commit | 759f7f34281a2c3d406ce93e52e63272a9d4beba (patch) | |
tree | 491339afc3ba74316d9d9019318836ffb6621ce8 /cpp/demo/IcePack/hello/Server.cpp | |
parent | bug fix to the icepack hello demo. (diff) | |
download | ice-759f7f34281a2c3d406ce93e52e63272a9d4beba.tar.bz2 ice-759f7f34281a2c3d406ce93e52e63272a9d4beba.tar.xz ice-759f7f34281a2c3d406ce93e52e63272a9d4beba.zip |
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=335
Diffstat (limited to 'cpp/demo/IcePack/hello/Server.cpp')
-rw-r--r-- | cpp/demo/IcePack/hello/Server.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/cpp/demo/IcePack/hello/Server.cpp b/cpp/demo/IcePack/hello/Server.cpp index 1b328a7415a..be376fd4b0c 100644 --- a/cpp/demo/IcePack/hello/Server.cpp +++ b/cpp/demo/IcePack/hello/Server.cpp @@ -7,8 +7,8 @@ // // ********************************************************************** -#include <Ice/Ice.h> #include <HelloI.h> +#include <Ice/Application.h> using namespace std; @@ -27,8 +27,7 @@ Server::run(int argc, char* argv[]) string id = communicator()->getProperties()->getProperty("Identity"); - Ice::ObjectPtr object = new HelloFactoryI(); - adapter->add(object, Ice::stringToIdentity(id)); + adapter->add(new HelloFactoryI, Ice::stringToIdentity(id)); adapter->activate(); communicator()->waitForShutdown(); @@ -39,6 +38,5 @@ int main(int argc, char* argv[]) { Server app; - int status = app.main(argc, argv); - return status; + return app.main(argc, argv); } |