summaryrefslogtreecommitdiff
path: root/TAO/tests/Collocation_Oneway_Tests/Hello.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Collocation_Oneway_Tests/Hello.cpp')
-rw-r--r--TAO/tests/Collocation_Oneway_Tests/Hello.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/TAO/tests/Collocation_Oneway_Tests/Hello.cpp b/TAO/tests/Collocation_Oneway_Tests/Hello.cpp
index 6a3b92b19eb..41679d5a852 100644
--- a/TAO/tests/Collocation_Oneway_Tests/Hello.cpp
+++ b/TAO/tests/Collocation_Oneway_Tests/Hello.cpp
@@ -4,6 +4,7 @@
#include "Hello.h"
#include "tao/ORB_Core.h"
#include "tao/ORB_Table.h"
+#include "tao/ORB_Core_Auto_Ptr.h"
ACE_RCSID(Collocation_Oneway_Tests, Hello, "$Id$")
@@ -50,7 +51,8 @@ Hello::get_string (void)
TAO::ORB_Table * const orb_table =
TAO::ORB_Table::instance ();
- if (orb_table->find ("server_orb") == 0)
+ TAO_ORB_Core_Auto_Ptr tmp (orb_table->find ("server_orb"));
+ if (tmp.get () == 0)
{
// We are running on a single ORB and this is an error.
ACE_ERROR ((LM_ERROR,