Re: Commit: exporter work


Subject: Re: Commit: exporter work
From: Andrew Dunbar (hippietrail@yahoo.com)
Date: Thu Apr 12 2001 - 14:25:47 CDT


Dom Lachowicz wrote:
>
> 1) Expand UT_String to have a operator+=(char) method
> 2) Use UT_String in all of our exporters instead of our local buffer
> mechanism
> 3) Make all XML exporters (ABW, DBK, FO, HTML, WML) output valid data for
> non-latin1 locales
> 4) Hopefully fix the MSVC + Ispell bug

Dom, MSVC still refused to build. Based on the error messages
I produced this patch which does get it to build but makes no
sends as I had to remove "const" from the .cpp files.

Does anybody understand what's going on?

Andrew.

-- 
http://linguaphile.sourceforge.net

Index: ispell_checker.cpp =================================================================== RCS file: /cvsroot/abi/src/other/spell/ispell_checker.cpp,v retrieving revision 1.2 diff -u -r1.2 ispell_checker.cpp --- ispell_checker.cpp 2001/04/12 10:20:10 1.2 +++ ispell_checker.cpp 2001/04/12 19:21:00 @@ -251,7 +251,7 @@ { /* out of memory, but return what was copied so far */ sg->count = c; - return c; + return reinterpret_cast<UT_Vector *>(c); } if (translate_out == (iconv_t)-1) Index: ispell_checker.h =================================================================== RCS file: /cvsroot/abi/src/other/spell/ispell_checker.h,v retrieving revision 1.3 diff -u -r1.3 ispell_checker.h --- ispell_checker.h 2001/04/12 17:56:15 1.3 +++ ispell_checker.h 2001/04/12 19:21:00 @@ -10,11 +10,11 @@ public: ~ISpellChecker(); - virtual SpellChecker::SpellCheckResult checkWord (const UT_UCSChar * word, size_t len); - virtual UT_Vector * suggestWord (const UT_UCSChar * word, size_t len); + virtual SpellChecker::SpellCheckResult checkWord (UT_UCSChar * word, size_t len); + virtual UT_Vector * suggestWord (UT_UCSChar * word, size_t len); protected: - virtual bool requestDictionary (const char * szLang); + virtual bool requestDictionary (char * szLang); ISpellChecker(); };

_________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com



This archive was generated by hypermail 2b25 : Thu Apr 12 2001 - 14:24:16 CDT