Skip to content

Commit 377d8f0

Browse files
author
Nicholas Reed
committed
some const char corrections including remaining changes from SCL git 4cf16d7
1 parent b25720d commit 377d8f0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/clstepcore/ExpDict.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1728,14 +1728,14 @@ class ArrayTypeDescriptor : public AggrTypeDescriptor {
17281728
SDAI_LOGICAL _optionalElements ;
17291729
public:
17301730

1731-
ArrayTypeDescriptor( ) : _optionalElements( ( char * )"UNKNOWN_TYPE" ) { }
1731+
ArrayTypeDescriptor( ) : _optionalElements( "UNKNOWN_TYPE" ) { }
17321732
ArrayTypeDescriptor( Logical optElem ) : _optionalElements( optElem )
17331733
{ }
17341734
ArrayTypeDescriptor( const char * nm, PrimitiveType ft,
17351735
Schema * origSchema, const char * d,
17361736
AggregateCreator f = 0 )
17371737
: AggrTypeDescriptor( nm, ft, origSchema, d, f ),
1738-
_optionalElements( ( char * )"UNKNOWN_TYPE" )
1738+
_optionalElements( "UNKNOWN_TYPE" )
17391739
{ }
17401740

17411741
virtual ~ArrayTypeDescriptor() {}
@@ -1863,7 +1863,7 @@ class StringTypeDescriptor : public TypeDescriptor {
18631863
SDAI_LOGICAL _fixedSize ;
18641864
public:
18651865

1866-
StringTypeDescriptor( ) : _fixedSize( ( char * )"UNKNOWN_TYPE" ) {
1866+
StringTypeDescriptor( ) : _fixedSize( "UNKNOWN_TYPE" ) {
18671867
_width = 0;
18681868
}
18691869
virtual ~StringTypeDescriptor() { }

src/fedex_plus/complexSupport.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ class ComplexCollect {
428428
}
429429
// One of our clists shows that ent will have to be instantiated
430430
// using external mapping (see Part 21, sect 11.2.5.1).
431-
void write( char * );
431+
void write( const char * );
432432

433433
ComplexList * clists;
434434

@@ -438,6 +438,6 @@ class ComplexCollect {
438438

439439
// Standalone function which can be used to print out the complex info in an
440440
// express file (prints out CCollect, CList & EntList instant. statements):
441-
void print_complex( ComplexCollect &, char * );
441+
void print_complex( ComplexCollect &, const char * );
442442

443443
#endif

src/fedex_plus/write.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// Local function prototypes:
1616
static void writeheader( ostream &, int );
1717

18-
void print_complex( ComplexCollect & collect, char * filename )
18+
void print_complex( ComplexCollect & collect, const char * filename )
1919
/*
2020
* Standalone function called from fedex_plus. Takes a ComplexCollect
2121
* and writes its contents to a file (filename) which can be used to
@@ -35,7 +35,7 @@ void print_complex( ComplexCollect & collect, char * filename )
3535
collect.write( filename );
3636
}
3737

38-
void ComplexCollect::write( char * fname )
38+
void ComplexCollect::write( const char * fname )
3939
/*
4040
* Generates C++ code in os which may be compiled and run to create a
4141
* ComplexCollect structure. Functions are called to write out the

src/test/p21read/p21read.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ int main( int argc, char * argv[] ) {
3434
Registry registry( SchemaInit );
3535
InstMgr instance_list;
3636
STEPfile sfile( registry, instance_list );
37-
char * flnm;
37+
const char * flnm;
3838

3939
cout << "\nEXAMPLE : load file ..." << endl;
4040
if( argc >= 2 ) {

0 commit comments

Comments
 (0)