Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / tests / Security / Secure_Invocation / Foo_i.cpp
blob53a6e1213974f5058c8d65319d57973ea5f81932
1 // -*- C++ -*-
2 #include "Foo_i.h"
3 #include "ace/OS_NS_string.h"
5 Foo_i::Foo_i (CORBA::ORB_ptr orb,
6 SecurityLevel3::SecurityCurrent_ptr current)
7 : orb_ (CORBA::ORB::_duplicate (orb)),
8 current_ (SecurityLevel3::SecurityCurrent::_duplicate (current))
12 void
13 Foo_i::baz ()
15 SecurityLevel3::ClientCredentials_var credentials =
16 this->current_->client_credentials ();
18 CORBA::String_var id = credentials->creds_id ();
20 ACE_DEBUG ((LM_DEBUG,
21 "\n"
22 "ClientCredentials ID\n"
23 "====================\n"
24 "%s\n",
25 id.in ()));
28 void
29 Foo_i::shutdown ()
31 this->orb_->shutdown (false);