[cgma-dev] r2162 - cgm/trunk/geom/OCC

kraftche at mcs.anl.gov kraftche at mcs.anl.gov
Mon Oct 20 15:32:48 CDT 2008


Author: kraftche
Date: 2008-10-20 15:32:47 -0500 (Mon, 20 Oct 2008)
New Revision: 2162

Modified:
   cgm/trunk/geom/OCC/OCCModifyEngine.cpp
Log:
fix non-portable code

Modified: cgm/trunk/geom/OCC/OCCModifyEngine.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2008-10-20 20:30:33 UTC (rev 2161)
+++ cgm/trunk/geom/OCC/OCCModifyEngine.cpp	2008-10-20 20:32:47 UTC (rev 2162)
@@ -777,7 +777,7 @@
 {
   topo_edges_loops.clean_out();
   CubitStatus stat = CUBIT_SUCCESS;
-  DLIList<TopoDS_Edge*>* topo_edges[curve_list.size()];
+  std::vector< DLIList<TopoDS_Edge*>* > topo_edges(curve_list.size());
   int size_in = curve_list.size();
   for(int i = 0; i < size_in; i++)
     topo_edges[i] = new DLIList<TopoDS_Edge*>;
@@ -1822,7 +1822,7 @@
        if ((100 - frac_done) < fraction_remaining)
        {
           fraction_remaining = 100 - frac_done;
-          PRINT_INFO("%d\% remaining.\n ", fraction_remaining+1);
+          PRINT_INFO("%d%% remaining.\n ", fraction_remaining+1);
        }
     }
   }




More information about the cgma-dev mailing list