diff options
Diffstat (limited to 'libs/hunspell/src/affentry.hxx')
-rw-r--r-- | libs/hunspell/src/affentry.hxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/hunspell/src/affentry.hxx b/libs/hunspell/src/affentry.hxx index f3db20013c..6311d83fff 100644 --- a/libs/hunspell/src/affentry.hxx +++ b/libs/hunspell/src/affentry.hxx @@ -122,7 +122,7 @@ class LIBHUNSPELL_DLL_EXPORTED PfxEntry : protected AffEntry { inline FLAG getFlag() { return aflag; } inline const char* getKey() { return appnd.c_str(); } - char* add(const char* word, int len); + char* add(const char* word, size_t len); inline short getKeyLen() { return appnd.size(); } @@ -154,7 +154,7 @@ class LIBHUNSPELL_DLL_EXPORTED SfxEntry : protected AffEntry { private: AffixMgr* pmyMgr; - char* rappnd; + std::string rappnd; SfxEntry* next; SfxEntry* nexteq; @@ -200,8 +200,8 @@ class LIBHUNSPELL_DLL_EXPORTED SfxEntry : protected AffEntry { const FLAG needflag); inline FLAG getFlag() { return aflag; } - inline const char* getKey() { return rappnd; } - char* add(const char* word, int len); + inline const char* getKey() { return rappnd.c_str(); } + char* add(const char* word, size_t len); inline const char* getMorph() { return morphcode; } |