You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by ro...@apache.org on 2006/12/05 17:05:40 UTC

svn commit: r482698 - /incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/CopyHelper.cpp

Author: robbinspg
Date: Tue Dec  5 08:05:40 2006
New Revision: 482698

URL: http://svn.apache.org/viewvc?view=rev&rev=482698
Log:
TUSCANY-950 Fix for copying many valued item

Modified:
    incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/CopyHelper.cpp

Modified: incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/CopyHelper.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/CopyHelper.cpp?view=diff&rev=482698&r1=482697&r2=482698
==============================================================================
--- incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/CopyHelper.cpp (original)
+++ incubator/tuscany/cpp/sdo/runtime/core/src/commonj/sdo/CopyHelper.cpp Tue Dec  5 08:05:40 2006
@@ -349,21 +349,11 @@
                     else
                     {
                         // Sequence member is a primitive
-                        if (seqProperty.isMany())
-                        {
-                            int index = fromSequence->getListIndex(i);
-                            transfersequenceitem(toSequence,
-                                                 fromSequence,
-                                                 seqProperty,
-                                                 index);
-                        }
-                        else
-                        {
-                            transfersequenceitem(toSequence,
-                                                 fromSequence,
-                                                 seqProperty,
-                                                 i);
-                        }                           
+                        transfersequenceitem(toSequence,
+                                             fromSequence,
+                                             seqProperty,
+                                             i);
+                                                
                     } 
                 } // is it a text element
             } // for all elements in sequence



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org