Hi,

>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)

This was wrong. It should now be corrected - sp_suggestions is most 
certainly not a UT_Vector. Probably was an oversight by whomever coded this 
bit.

This next bit confuses the heck out of me and should not be committed.

>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();
>  };
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com


Reply via email to