diff --git a/pcbnew/export_gencad.cpp b/pcbnew/export_gencad.cpp index 5967a35708..ae5979ebe2 100644 --- a/pcbnew/export_gencad.cpp +++ b/pcbnew/export_gencad.cpp @@ -184,7 +184,7 @@ void CreatePadsShapesSection( FILE* file, BOARD* pcb ) */ { D_PAD* pad, ** padlist, ** pad_list_base; - char* pad_type; + const char* pad_type; int memsize, ii, dx, dy; D_PAD* old_pad = NULL; int pad_name_number; @@ -320,12 +320,12 @@ void CreateShapesSection( FILE* file, BOARD* pcb ) * $ENDSHAPES */ { - MODULE* module; - D_PAD* pad; - char* layer; - int orient; - wxString pinname; - char* mirror = "0"; + MODULE* module; + D_PAD* pad; + const char* layer; + int orient; + wxString pinname; + const char* mirror = "0"; fputs( "$SHAPES\n", file ); @@ -378,13 +378,13 @@ void CreateComponentsSection( FILE* file, BOARD* pcb ) * Composants cote CUIVRE: * Les formes sont donnees avec l'option "FLIP", c.a.d.: * - ils sont decrits en vue normale (comme s'ils etaient sur cote COMPOSANT) - * - leur orientation est donnée comme s'ils etaient cote composant. + * - leur orientation est donn�e comme s'ils etaient cote composant. */ { MODULE* module = pcb->m_Modules; TEXTE_MODULE* PtTexte; - char* mirror; - char* flip; + const char* mirror; + const char* flip; int ii; fputs( "$COMPONENTS\n", file ); diff --git a/pcbnew/gen_modules_placefile.cpp b/pcbnew/gen_modules_placefile.cpp index ccef1ab6e5..ec0811762c 100644 --- a/pcbnew/gen_modules_placefile.cpp +++ b/pcbnew/gen_modules_placefile.cpp @@ -356,7 +356,7 @@ void WinEDA_PcbFrame::GenModuleReport( wxCommandEvent& event ) layer = 1; if( pad->m_Masque_Layer & CMP_LAYER ) layer |= 2; - char* layer_name[4] = { "??? ", "copper", "component", "all" }; + const char* layer_name[4] = { "??? ", "copper", "component", "all" }; sprintf( Line, "Layer %s\n", layer_name[layer] ); fputs( Line, rptfile ); fprintf( rptfile, "$EndPAD\n" );