[hydra-commits] beagles: branch ice/preserve-graphs r634 - /ice/branches/preserve-graphs/cpp/...

SVN commits to the Hydra project hydra-commits at lists.digium.com
Mon May 24 13:01:20 CDT 2010


Author: beagles
Date: Mon May 24 13:01:19 2010
New Revision: 634

URL: https://origsvn.digium.com/svn-view/hydra?view=rev&rev=634
Log:
correct missing marshalling point

Modified:
    ice/branches/preserve-graphs/cpp/src/Slice/CsUtil.cpp

Modified: ice/branches/preserve-graphs/cpp/src/Slice/CsUtil.cpp
URL: https://origsvn.digium.com/svn-view/hydra/ice/branches/preserve-graphs/cpp/src/Slice/CsUtil.cpp?view=diff&rev=634&r1=633&r2=634
==============================================================================
--- ice/branches/preserve-graphs/cpp/src/Slice/CsUtil.cpp (original)
+++ ice/branches/preserve-graphs/cpp/src/Slice/CsUtil.cpp Mon May 24 13:01:19 2010
@@ -420,7 +420,21 @@
             {
                 if(marshal)
                 {
-                    out << nl << stream << ".writeObject(" << param << ");";
+		    if(preserving)
+		    {
+			out << nl << "offset = new Ice.ObjectIdOffset();";
+			out << nl << "offset.offset = " << stream << ".getWriteSliceOffset();";
+			out << nl << "offset.id = ";
+		    }
+		    else
+		    {
+			out << nl;
+		    }
+                    out << stream << ".writeObject(" << param << ");";
+		    if(preserving)
+		    {
+			out << nl << "offsetSeq.Add(offset);";
+		    }
                 }
                 else
                 {





More information about the asterisk-scf-commits mailing list