[cgma-dev] r2807 - cgm/trunk/geom/OCC
jiangtao_ma at yahoo.com
jiangtao_ma at yahoo.com
Wed Apr 8 11:25:13 CDT 2009
Author: janehu
Date: 2009-04-08 11:25:12 -0500 (Wed, 08 Apr 2009)
New Revision: 2807
Modified:
cgm/trunk/geom/OCC/OCCCoEdge.cpp
cgm/trunk/geom/OCC/OCCCoEdge.hpp
Log:
These files' change doesn't affect the fix of memory error, so restore to previous version.
Modified: cgm/trunk/geom/OCC/OCCCoEdge.cpp
===================================================================
--- cgm/trunk/geom/OCC/OCCCoEdge.cpp 2009-04-07 20:50:16 UTC (rev 2806)
+++ cgm/trunk/geom/OCC/OCCCoEdge.cpp 2009-04-08 16:25:12 UTC (rev 2807)
@@ -64,11 +64,6 @@
return OCCQueryEngine::instance();
}
-LoopSM* OCCCoEdge::loop()
-{
- return myLoop;
-}
-
void OCCCoEdge::append_simple_attribute_virt(CubitSimpleAttrib* csattrib_ptr)
{
}
Modified: cgm/trunk/geom/OCC/OCCCoEdge.hpp
===================================================================
--- cgm/trunk/geom/OCC/OCCCoEdge.hpp 2009-04-07 20:50:16 UTC (rev 2806)
+++ cgm/trunk/geom/OCC/OCCCoEdge.hpp 2009-04-08 16:25:12 UTC (rev 2807)
@@ -60,7 +60,8 @@
inline void set_curve(Curve* curve) {myCurve = curve;}
- LoopSM* loop();
+ inline LoopSM* loop() const { if(myLoop)return myLoop;
+ else return NULL; }
inline void set_loop(LoopSM * loop) {myLoop = loop;}
More information about the cgma-dev
mailing list