diff options
Diffstat (limited to 'TAO/orbsvcs/ImplRepo_Service/INS_Locator.h')
-rw-r--r-- | TAO/orbsvcs/ImplRepo_Service/INS_Locator.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/TAO/orbsvcs/ImplRepo_Service/INS_Locator.h b/TAO/orbsvcs/ImplRepo_Service/INS_Locator.h index 26071a51348..0536aac2fb0 100644 --- a/TAO/orbsvcs/ImplRepo_Service/INS_Locator.h +++ b/TAO/orbsvcs/ImplRepo_Service/INS_Locator.h @@ -16,7 +16,10 @@ #include /**/ "ace/pre.h" #include "tao/IORTable/IORTable.h" -#include "tao/LocalObject.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ class ImR_Locator_i; @@ -28,22 +31,18 @@ class ImR_Locator_i; * This class provides a callback for the IORTable to call when it needs * to dynamically receive a IOR to forward in response to an INS request. */ -class INS_Locator : public virtual IORTable::Locator, - public virtual TAO_Local_RefCounted_Object +class INS_Locator : public virtual IORTable::Locator { public: - /// Constructor - INS_Locator (ImR_Locator_i* loc); + INS_Locator (ImR_Locator_i& loc); /// Locate the appropriate IOR. - char * locate (const char *object_key ACE_ENV_ARG_DECL) + char* locate (const char *object_key ACE_ENV_ARG_DECL) ACE_THROW_SPEC ((CORBA::SystemException, IORTable::NotFound)); private: - - ImR_Locator_i* imr_locator_; - + ImR_Locator_i& imr_locator_; }; #include /**/ "ace/post.h" -#endif +#endif |