drop StringCompare from cui

Change-Id: Iec7a797581ab899e93ad6cebb06c3622ca2360b9
This commit is contained in:
Caolán McNamara
2013-10-21 09:56:41 +01:00
parent df29825ec6
commit 28977ea778

View File

@@ -371,9 +371,9 @@ sal_uInt16 SvxEditDictionaryDialog::GetLBInsertPos(const OUString &rDicWord)
SvTreeListEntry* pEntry = pWordsLB->GetEntry(j); SvTreeListEntry* pEntry = pWordsLB->GetEntry(j);
DBG_ASSERT( pEntry, "NULL pointer"); DBG_ASSERT( pEntry, "NULL pointer");
OUString aNormEntry( getNormDicEntry_Impl( rDicWord ) ); OUString aNormEntry( getNormDicEntry_Impl( rDicWord ) );
StringCompare eCmpRes = (StringCompare)pCollator-> sal_Int32 nCmpRes = pCollator->
compareString( aNormEntry, getNormDicEntry_Impl( pWordsLB->GetEntryText(pEntry, 0) ) ); compareString( aNormEntry, getNormDicEntry_Impl( pWordsLB->GetEntryText(pEntry, 0) ) );
if( COMPARE_LESS == eCmpRes ) if (nCmpRes < 0)
break; break;
} }
if (j < pWordsLB->GetEntryCount()) // entry found? if (j < pWordsLB->GetEntryCount()) // entry found?