summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-05-25 11:23:20 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-05-25 11:23:20 +0000
commit6ed7b94e3d1bf34f70abf6d440644f4efb9c4f3d (patch)
tree41c3a88c0c2cd55337585483878a71c6efe79e9c /linguistic
parent66f37b387ee419170cb48066fbc691d2359c0154 (diff)
INTEGRATION: CWS tl32 (1.7.8); FILE MERGED
2007/04/17 14:05:28 tl 1.7.8.4: #144139# warning-free code; wrong line fixed 2006/11/02 15:42:26 tl 1.7.8.3: #140479# warning-free code for unxsols4(.pro) 2006/11/01 15:14:51 tl 1.7.8.2: #140479# warning-free code for unxlngi6(.pro) 2006/10/26 11:26:03 tl 1.7.8.1: #140479# make linguistic warning-free
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/iprcache.cxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/linguistic/source/iprcache.cxx b/linguistic/source/iprcache.cxx
index 48e50ed9c6..356a73dc46 100644
--- a/linguistic/source/iprcache.cxx
+++ b/linguistic/source/iprcache.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: iprcache.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 03:53:57 $
+ * last change: $Author: vg $ $Date: 2007-05-25 12:23:20 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -101,12 +101,12 @@ static const struct
INT32 nPropHdl;
} aFlushProperties[ NUM_FLUSH_PROPS ] =
{
- UPN_IS_GERMAN_PRE_REFORM, UPH_IS_GERMAN_PRE_REFORM,
- UPN_IS_USE_DICTIONARY_LIST, UPH_IS_USE_DICTIONARY_LIST,
- UPN_IS_IGNORE_CONTROL_CHARACTERS, UPH_IS_IGNORE_CONTROL_CHARACTERS,
- UPN_IS_SPELL_UPPER_CASE, UPH_IS_SPELL_UPPER_CASE,
- UPN_IS_SPELL_WITH_DIGITS, UPH_IS_SPELL_WITH_DIGITS,
- UPN_IS_SPELL_CAPITALIZATION, UPH_IS_SPELL_CAPITALIZATION
+ { UPN_IS_GERMAN_PRE_REFORM, UPH_IS_GERMAN_PRE_REFORM },
+ { UPN_IS_USE_DICTIONARY_LIST, UPH_IS_USE_DICTIONARY_LIST },
+ { UPN_IS_IGNORE_CONTROL_CHARACTERS, UPH_IS_IGNORE_CONTROL_CHARACTERS },
+ { UPN_IS_SPELL_UPPER_CASE, UPH_IS_SPELL_UPPER_CASE },
+ { UPN_IS_SPELL_WITH_DIGITS, UPH_IS_SPELL_WITH_DIGITS },
+ { UPN_IS_SPELL_CAPITALIZATION, UPH_IS_SPELL_CAPITALIZATION }
};
@@ -269,8 +269,8 @@ class IPRCachedWord
IPRCachedWord & operator = (const IPRCachedWord &);
public:
- IPRCachedWord( const String& rWord, IPRCachedWord* pFollow, INT16 nLang )
- : aWord( rWord ), pNext( 0 ), pPrev( 0 ), pFollow( pFollow ),
+ IPRCachedWord( const String& rWord, IPRCachedWord* pFollowPtr, INT16 nLang )
+ : aWord( rWord ), pNext( 0 ), pPrev( 0 ), pFollow( pFollowPtr ),
nLanguage( nLang ), nFound( 0 ) {}
~IPRCachedWord(){}
@@ -427,11 +427,11 @@ BOOL IPRSpellCache::CheckWord( const String& rWord, INT16 nLang, BOOL bAllLang )
{
pRun = *(ppHash + nIndex);
- if( pRun && !( bRet = (rWord == pRun->GetWord() &&
+ if( pRun && FALSE == ( bRet = (rWord == pRun->GetWord() &&
(nLang == pRun->GetLang() || bAllLang)) ) )
{
IPRCachedWord* pTmp = pRun->GetNext();
- while( pTmp && !( bRet = ( rWord == pTmp->GetWord() &&
+ while( pTmp && FALSE ==( bRet = ( rWord == pTmp->GetWord() &&
(nLang == pTmp->GetLang() || bAllLang) ) ) )
{
pRun = pTmp;
@@ -451,7 +451,7 @@ BOOL IPRSpellCache::CheckWord( const String& rWord, INT16 nLang, BOOL bAllLang )
{ // Wenn wir noch nicht erster sind, werden wir es jetzt:
if ( ( pRun->GetFound() <= nInputValue ) &&
( ++nInputPos > IPR_CACHE_MAXINPUT )
- || ( pInput == pRun ) && !( pInput = pRun->GetFollow() ) )
+ || ( pInput == pRun ) && NULL == ( pInput = pRun->GetFollow() ) )
{ // Wenn die Input-Stelle am Maximum anlangt, erhoehen
++nInputValue; // wir den InputValue und gehen wieder
@@ -538,7 +538,7 @@ void IPRSpellCache::AddWord( const String& rWord, INT16 nLang )
else
pLast = pTmp; // wir waren letzter
// Einfuegen vor pInput
- if( pTmp = pInput->GetPrev() )
+ if( NULL != (pTmp = pInput->GetPrev()) )
pTmp->SetFollow( pRun );
else
pFirst = pRun; // pInput war erster