[warning-fix][-Wint-to-pointer-cast]
This commit is contained in:
@@ -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() );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user