Revision: 77960
          http://sourceforge.net/p/brlcad/code/77960
Author:   starseeker
Date:     2020-12-11 15:22:01 +0000 (Fri, 11 Dec 2020)
Log Message:
-----------
Walking through a step-g run, this is the first point where things start to 
look a bit strange.  See if passing in a C string helps any.

Modified Paths:
--------------
    brlcad/branches/extbuild/src/other/ext/stepcode/src/clstepcore/dictSchema.cc
    brlcad/branches/extbuild/src/other/ext/stepcode/src/clstepcore/dictSchema.h
    
brlcad/branches/extbuild/src/other/ext/stepcode/src/exp2cxx/classes_wrapper.cc

Modified: 
brlcad/branches/extbuild/src/other/ext/stepcode/src/clstepcore/dictSchema.cc
===================================================================
--- 
brlcad/branches/extbuild/src/other/ext/stepcode/src/clstepcore/dictSchema.cc    
    2020-12-11 14:16:34 UTC (rev 77959)
+++ 
brlcad/branches/extbuild/src/other/ext/stepcode/src/clstepcore/dictSchema.cc    
    2020-12-11 15:22:01 UTC (rev 77960)
@@ -31,9 +31,10 @@
     }
 }
 
-void Schema::AddFunction(const std::string &f)
+void Schema::AddFunction(const char *f)
 {
-    _function_list.push_back(f);
+    std::string fstr(f);
+    _function_list.push_back(fstr);
 }
 
 void Schema::AddGlobal_rule(Global_rule_ptr gr)

Modified: 
brlcad/branches/extbuild/src/other/ext/stepcode/src/clstepcore/dictSchema.h
===================================================================
--- brlcad/branches/extbuild/src/other/ext/stepcode/src/clstepcore/dictSchema.h 
2020-12-11 14:16:34 UTC (rev 77959)
+++ brlcad/branches/extbuild/src/other/ext/stepcode/src/clstepcore/dictSchema.h 
2020-12-11 15:22:01 UTC (rev 77960)
@@ -81,7 +81,7 @@
             return _function_list;
         }
 
-        void AddFunction(const std::string &f);
+        void AddFunction(const char *f);
 
         Global_rule__set_var global_rules_()   // const
         {

Modified: 
brlcad/branches/extbuild/src/other/ext/stepcode/src/exp2cxx/classes_wrapper.cc
===================================================================
--- 
brlcad/branches/extbuild/src/other/ext/stepcode/src/exp2cxx/classes_wrapper.cc  
    2020-12-11 14:16:34 UTC (rev 77959)
+++ 
brlcad/branches/extbuild/src/other/ext/stepcode/src/exp2cxx/classes_wrapper.cc  
    2020-12-11 15:22:01 UTC (rev 77960)
@@ -530,7 +530,7 @@
         while(0 != (f = (Function)DICTdo(&de))) {
             fprintf(createall, "    str.clear();\n");
             format_for_std_stringout(createall, FUNCto_string(f));
-            fprintf(createall, "%s::schema->AddFunction( str );\n", 
SCHEMAget_name(schema));
+            fprintf(createall, "%s::schema->AddFunction( str.c_str() );\n", 
SCHEMAget_name(schema));
         }
 
         /* add PROCEDUREs to Schema dictionary entry */

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



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to