Skip to content

Commit

Permalink
change char * to const char * in some function prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
HomerReid committed Jun 4, 2018
1 parent 8345b3d commit 8a1faa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/Flatten.cc
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ void GDSIIData::Flatten(double UnitInMM)
/***************************************************************/
/***************************************************************/
void WriteGMSHEntity(Entity E, int Layer,
char *geoFileName, FILE **pgeoFile,
char *ppFileName, FILE **pppFile)
const char *geoFileName, FILE **pgeoFile,
const char *ppFileName, FILE **pppFile)
{ if ( (E.Text && !ppFileName) || (!E.Text && !geoFileName) ) return;

if (E.Text)
Expand Down Expand Up @@ -358,7 +358,7 @@ void WriteGMSHEntity(Entity E, int Layer,
/***************************************************************/
/***************************************************************/
/***************************************************************/
void WriteGMSHFile(EntityTable ETable, iVec Layers, char *FileBase, bool SeparateLayers)
void WriteGMSHFile(EntityTable ETable, iVec Layers, const char *FileBase, bool SeparateLayers)
{
char ppFileName[100];
snprintf(ppFileName,100,"%s.pp",FileBase);
Expand Down
2 changes: 1 addition & 1 deletion lib/libGDSII.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ void ClearGDSIICache();
/***************************************************************/
bool DumpGDSIIFile(const char *FileName);
void WriteGMSHEntity(Entity E, int Layer, const char *geoFileName, FILE **pgeoFile,
char *ppFileName=0, FILE **pppFile=0);
const char *ppFileName=0, FILE **pppFile=0);
void WriteGMSHFile(EntityTable ETable, iVec Layers, char *FileBase, bool SeparateLayers=false);

} /* namespace libGDSII */
Expand Down

0 comments on commit 8a1faa1

Please sign in to comment.