X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b63b07a809f9a3d22596d4971ef5c8971153823a..1ea9acd9aa1b0e5fa3f7bef3db4eca77822bfe35:/utils/tex2rtf/src/readshg.cpp diff --git a/utils/tex2rtf/src/readshg.cpp b/utils/tex2rtf/src/readshg.cpp index 6d3ffaff2b..3d5cc5ee12 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;