[Mobies-commit] [commit] r3751 - UDM/trunk/src/UdmDom

ksmyth at redhat1.isis.vanderbilt.edu ksmyth at redhat1.isis.vanderbilt.edu
Mon May 16 14:38:59 CDT 2011


Author: ksmyth
Date: Mon May 16 14:38:58 2011
New Revision: 3751

Log:
setAssociation requires DomObjects from the same datanetwork

Modified:
   UDM/trunk/src/UdmDom/UdmDom.cpp

Modified: UDM/trunk/src/UdmDom/UdmDom.cpp
==============================================================================
--- UDM/trunk/src/UdmDom/UdmDom.cpp	Mon May 16 14:38:24 2011	(r3750)
+++ UDM/trunk/src/UdmDom/UdmDom.cpp	Mon May 16 14:38:58 2011	(r3751)
@@ -2622,6 +2622,8 @@
 			XMLCh *aa = NULL;
 			for(vector<ObjectImpl* >::const_iterator i = nvect.begin(); i != nvect.end(); i++) 
 			{
+				UDM_ASSERT(dynamic_cast<DomObject*>(*i));
+				UDM_ASSERT(static_cast<DomObject *>(*i)->__getdn() == __getdn());
 				DomObject peer = *static_cast<DomObject *>(*i);
 
 				const XMLCh *peerid = peer.GetID();


More information about the Mobies-commit mailing list