[warning-fix][-Wint-to-pointer-cast]

This commit is contained in:
Mark Pictor
2011-08-20 06:28:00 -04:00
parent df8f8d5f18
commit 71b3a28909
+7 -20
View File
@@ -4,6 +4,7 @@
#include <STEPcomplex.h>
#include <complexSupport.h>
#include <STEPattribute.h>
#include <sstream>
extern const char *
ReadStdKeyword( istream & in, std::string & buf, int skipInitWS );
@@ -554,27 +555,13 @@ const char *
STEPcomplex::STEPwrite( std::string & buf, const char * currSch ) {
buf.clear();
buf.append( "#" );
buf.append( ( char * )STEPfile_id );
buf.append( "=" );
buf.append( "(" );
/*
char instanceInfo[BUFSIZ];
sprintf(instanceInfo, "#%d=", STEPfile_id );
*/
/*
strstream ss;
ss << "#" << STEPfile_id << "=(";
WriteExtMapEntities(ss, currSch);
ss << ");";
ss << ends;
stringstream ss;
ss << "#" << STEPfile_id << "=(";
WriteExtMapEntities(ss, currSch);
ss << ");";
ss << ends;
char *tmpstr = ss.str();
buf.Append(tmpstr);
delete tmpstr;
*/
WriteExtMapEntities( buf, currSch );
buf.append( ");" );
buf.append(ss.str());
return const_cast<char *>( buf.c_str() );
}