Revision: 77963
          http://sourceforge.net/p/brlcad/code/77963
Author:   starseeker
Date:     2020-12-11 17:53:08 +0000 (Fri, 11 Dec 2020)
Log Message:
-----------
C++ string -> C string

Modified Paths:
--------------
    
brlcad/branches/extbuild/src/other/ext/stepcode/src/clstepcore/entityDescriptor.h
    brlcad/branches/extbuild/src/other/ext/stepcode/src/exp2cxx/classes_entity.c

Modified: 
brlcad/branches/extbuild/src/other/ext/stepcode/src/clstepcore/entityDescriptor.h
===================================================================
--- 
brlcad/branches/extbuild/src/other/ext/stepcode/src/clstepcore/entityDescriptor.h
   2020-12-11 15:59:56 UTC (rev 77962)
+++ 
brlcad/branches/extbuild/src/other/ext/stepcode/src/clstepcore/entityDescriptor.h
   2020-12-11 17:53:08 UTC (rev 77963)
@@ -140,9 +140,9 @@
         {
             _subtypes.AddNode(ed);
         }
-        void AddSupertype_Stmt(const std::string &s)
+        void AddSupertype_Stmt(const char *s)
         {
-            _supertype_stmt = s;
+            _supertype_stmt = std::string(s);
         }
         const char *Supertype_Stmt()
         {

Modified: 
brlcad/branches/extbuild/src/other/ext/stepcode/src/exp2cxx/classes_entity.c
===================================================================
--- 
brlcad/branches/extbuild/src/other/ext/stepcode/src/exp2cxx/classes_entity.c    
    2020-12-11 15:59:56 UTC (rev 77962)
+++ 
brlcad/branches/extbuild/src/other/ext/stepcode/src/exp2cxx/classes_entity.c    
    2020-12-11 17:53:08 UTC (rev 77963)
@@ -739,7 +739,7 @@
 
             format_for_std_stringout(impl, 
SUBTYPEto_string(entity->u.entity->subtype_expression));
             fprintf(impl, "    str.append( \")\" );\n");
-            fprintf(impl, "    %s::%s%s->AddSupertype_Stmt( str );\n", 
schema_name, ENT_PREFIX, entity_name);
+            fprintf(impl, "    %s::%s%s->AddSupertype_Stmt( str.c_str() );\n", 
schema_name, ENT_PREFIX, entity_name);
         } else {
             fprintf(impl, "    %s::%s%s->AddSupertype_Stmt( \"ABSTRACT 
SUPERTYPE\" );\n",
                     schema_name, ENT_PREFIX, entity_name);
@@ -749,7 +749,7 @@
             fprintf(impl, "    str.clear();\n    str.append( \"SUPERTYPE OF ( 
\" );\n");
             format_for_std_stringout(impl, 
SUBTYPEto_string(entity->u.entity->subtype_expression));
             fprintf(impl, "    str.append( \")\" );\n");
-            fprintf(impl, "    %s::%s%s->AddSupertype_Stmt( str );\n", 
schema_name, ENT_PREFIX, entity_name);
+            fprintf(impl, "    %s::%s%s->AddSupertype_Stmt( str.c_str() );\n", 
schema_name, ENT_PREFIX, entity_name);
         }
     }
     LISTdo(ENTITYget_supertypes(entity), sup, Entity)

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