summaryrefslogtreecommitdiff
path: root/cpp/demo/IceBox/hello/HelloServiceI.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-09-12 02:46:32 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-09-12 02:46:32 +0000
commit759f7f34281a2c3d406ce93e52e63272a9d4beba (patch)
tree491339afc3ba74316d9d9019318836ffb6621ce8 /cpp/demo/IceBox/hello/HelloServiceI.cpp
parentbug fix to the icepack hello demo. (diff)
downloadice-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/IceBox/hello/HelloServiceI.cpp')
-rw-r--r--cpp/demo/IceBox/hello/HelloServiceI.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/cpp/demo/IceBox/hello/HelloServiceI.cpp b/cpp/demo/IceBox/hello/HelloServiceI.cpp
index a86dac4fe44..58b7f2d4110 100644
--- a/cpp/demo/IceBox/hello/HelloServiceI.cpp
+++ b/cpp/demo/IceBox/hello/HelloServiceI.cpp
@@ -19,8 +19,8 @@ extern "C"
//
// Factory function
//
-HELLO_API ::IceBox::Service*
-create(::Ice::CommunicatorPtr communicator)
+HELLO_API IceBox::Service*
+create(Ice::CommunicatorPtr communicator)
{
return new HelloServiceI;
}
@@ -36,13 +36,10 @@ HelloServiceI::~HelloServiceI()
}
void
-HelloServiceI::start(const string& name,
- const ::Ice::CommunicatorPtr& communicator,
- const ::Ice::StringSeq& args)
+HelloServiceI::start(const string& name, const Ice::CommunicatorPtr& communicator, const Ice::StringSeq& args)
{
_adapter = communicator->createObjectAdapter(name);
- ::Ice::ObjectPtr object = new HelloI;
- _adapter->add(object, ::Ice::stringToIdentity("hello"));
+ _adapter->add(new HelloI, Ice::stringToIdentity("hello"));
_adapter->activate();
}