Revision: 57052
          http://sourceforge.net/p/brlcad/code/57052
Author:   phoenixyjll
Date:     2013-08-22 03:30:32 +0000 (Thu, 22 Aug 2013)
Log Message:
-----------
Simplify the code to output IsValid() information.

Modified Paths:
--------------
    brlcad/trunk/src/libbrep/boolean.cpp

Modified: brlcad/trunk/src/libbrep/boolean.cpp
===================================================================
--- brlcad/trunk/src/libbrep/boolean.cpp        2013-08-22 02:42:10 UTC (rev 
57051)
+++ brlcad/trunk/src/libbrep/boolean.cpp        2013-08-22 03:30:32 UTC (rev 
57052)
@@ -1215,13 +1215,7 @@
     ON_wString ws;
     ON_TextLog log(ws);
     brepO->IsValid(&log);
-    char *s = new char [ws.Length() + 1];
-    for (int k = 0; k < ws.Length(); k++) {
-       s[k] = ws[k];
-    }
-    s[ws.Length()] = 0;
-    bu_log("%s", s);
-    delete s;
+    bu_log(ON_String(ws).Array());
 
     // WIP
     delete [] curvesarray;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to