summaryrefslogtreecommitdiff
path: root/cpp/demo/IceBox/hello/HelloServiceI.cpp
diff options
context:
space:
mode:
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();
}