summaryrefslogtreecommitdiff
path: root/TAO/tao/AnyTypeCode/Any_Impl.cpp
diff options
context:
space:
mode:
authorsma <sma@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2012-03-01 11:28:43 +0000
committersma <sma@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2012-03-01 11:28:43 +0000
commit110c0b2ce1dcde6b786d66bcb1f3756d46062ab2 (patch)
tree8670e0ce86a3991484de3aa8fb315c15e313bd18 /TAO/tao/AnyTypeCode/Any_Impl.cpp
parentfdb2c99dcc82b15544bd050a22bf41f94e0c2902 (diff)
downloadATCD-110c0b2ce1dcde6b786d66bcb1f3756d46062ab2.tar.gz
Thu Mar 1 11:27:00 UTC 2012 Simon Massey <simon dot massey at prismtech dot com>
Diffstat (limited to 'TAO/tao/AnyTypeCode/Any_Impl.cpp')
-rw-r--r--TAO/tao/AnyTypeCode/Any_Impl.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/TAO/tao/AnyTypeCode/Any_Impl.cpp b/TAO/tao/AnyTypeCode/Any_Impl.cpp
index 84e3e71903a..1caab33a6e2 100644
--- a/TAO/tao/AnyTypeCode/Any_Impl.cpp
+++ b/TAO/tao/AnyTypeCode/Any_Impl.cpp
@@ -4,7 +4,8 @@
#include "tao/AnyTypeCode/Any_Impl.h"
#include "tao/AnyTypeCode/TypeCode.h"
#include "tao/AnyTypeCode/Marshal.h"
-#include "tao/Valuetype/ValueBase.h"
+#include "tao/ORB_Core.h"
+#include "tao/Valuetype_Adapter.h"
#include "tao/CORBA_String.h"
#include "tao/SystemException.h"
@@ -38,7 +39,9 @@ TAO::Any_Impl::marshal (TAO_OutputCDR &cdr)
// the type we are marshaling NOT the
// typecode of the base pointer that may
// have been inserted into the any.
- if (cdr << vb->_tao_type () == 0)
+ if (cdr << TAO_ORB_Core_instance ()
+ ->valuetype_adapter()
+ ->derived_type (vb) == 0)
{
return false;
}