summaryrefslogtreecommitdiff
path: root/TAO/tests/DII_Collocation_Tests/oneway/Hello.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/DII_Collocation_Tests/oneway/Hello.cpp')
-rw-r--r--TAO/tests/DII_Collocation_Tests/oneway/Hello.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/TAO/tests/DII_Collocation_Tests/oneway/Hello.cpp b/TAO/tests/DII_Collocation_Tests/oneway/Hello.cpp
index 4b4a1e3839c..4ce5dd499d6 100644
--- a/TAO/tests/DII_Collocation_Tests/oneway/Hello.cpp
+++ b/TAO/tests/DII_Collocation_Tests/oneway/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"
// Force static build to load the DII_Arguments_Converter service.
#include "tao/DynamicInterface/DII_Arguments_Converter_Impl.h"
@@ -295,7 +296,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,