X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b63b07a809f9a3d22596d4971ef5c8971153823a..3be926e348e2d0a3a2c278b9f2cff7843971e0c9:/utils/tex2rtf/src/readshg.cpp diff --git a/utils/tex2rtf/src/readshg.cpp b/utils/tex2rtf/src/readshg.cpp index 6d3ffaff2b..86e08e5eef 100644 --- a/utils/tex2rtf/src/readshg.cpp +++ b/utils/tex2rtf/src/readshg.cpp @@ -14,10 +14,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -90,7 +86,7 @@ int ParseSHG( const wxChar* fileName, HotSpot **hotspots) if(nMacroStrings > 0) fseek( fSHG, nMacroStrings, SEEK_CUR); //nMacroStrings is byte offset... // and, at the last, read through the strings: hotspot-id[ignored], then topic/macro - int c; + int c; for( i = 0 ; i < nHotspots ; ++i) { while( (c = fgetc( fSHG)) != 0) @@ -99,7 +95,7 @@ int ParseSHG( const wxChar* fileName, HotSpot **hotspots) int j = 0; while( (c = fgetc( fSHG)) != 0) { - (*hotspots)[i].szHlpTopic_Macro[j] = c; + (*hotspots)[i].szHlpTopic_Macro[j] = (wxChar)c; ++j; } (*hotspots)[i].szHlpTopic_Macro[j] = 0; @@ -111,7 +107,7 @@ int ParseSHG( const wxChar* fileName, HotSpot **hotspots) // Convert Windows .SHG file to HTML map file -bool SHGToMap(wxChar *filename, wxChar *defaultFile) +bool SHGToMap(const wxChar *filename, const wxChar *defaultFile) { // Test the SHG parser HotSpot *hotspots = NULL;