diff options
Diffstat (limited to 'linguistic/source/dicimp.cxx')
-rw-r--r-- | linguistic/source/dicimp.cxx | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/linguistic/source/dicimp.cxx b/linguistic/source/dicimp.cxx index f7f34694bfe9..0c2d3e4071cc 100644 --- a/linguistic/source/dicimp.cxx +++ b/linguistic/source/dicimp.cxx @@ -55,13 +55,14 @@ using namespace utl; using namespace osl; -using namespace rtl; using namespace com::sun::star; using namespace com::sun::star::lang; using namespace com::sun::star::uno; using namespace com::sun::star::linguistic2; using namespace linguistic; +using ::rtl::OUString; + /////////////////////////////////////////////////////////////////////////// #define BUFSIZE 4096 @@ -298,7 +299,7 @@ ULONG DictionaryNeo::loadEntries(const OUString &rMainURL) ULONG nErr = sal::static_int_cast< ULONG >(-1); - // Header einlesen + // read header BOOL bNegativ; USHORT nLang; nDicVersion = ReadDicVersion(pStream, nLang, bNegativ); @@ -321,7 +322,7 @@ ULONG DictionaryNeo::loadEntries(const OUString &rMainURL) USHORT nLen = 0; sal_Char aWordBuf[ BUFSIZE ]; - // Das erste Wort einlesen + // Read the first word if (!pStream->IsEof()) { *pStream >> nLen; @@ -338,8 +339,8 @@ ULONG DictionaryNeo::loadEntries(const OUString &rMainURL) while(!pStream->IsEof()) { - // Aus dem File einlesen - // Einfuegen ins Woerterbuch ohne Konvertierung + // Read from file + // Paste in dictionary without converting if(*aWordBuf) { ByteString aDummy( aWordBuf ); @@ -350,7 +351,7 @@ ULONG DictionaryNeo::loadEntries(const OUString &rMainURL) } *pStream >> nLen; - if (pStream->IsEof()) // #75082# GPF in online-spelling + if (pStream->IsEof()) break; if (0 != (nErr = pStream->GetError())) return nErr; @@ -493,7 +494,7 @@ ULONG DictionaryNeo::saveEntries(const OUString &rURL) pVerStr = pVerStr6; else pVerStr = eDicType == DictionaryType_POSITIVE ? pVerStr2 : pVerStr5; - strcpy( aWordBuf, pVerStr ); // #100211# - checked + strcpy( aWordBuf, pVerStr ); USHORT nLen = sal::static_int_cast< USHORT >(strlen( aWordBuf )); *pStream << nLen; if (0 != (nErr = pStream->GetError())) |