From 28977ea778cc7c8c16c16f1c8b2b6bb6a53b48f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Mon, 21 Oct 2013 09:56:41 +0100 Subject: [PATCH] drop StringCompare from cui Change-Id: Iec7a797581ab899e93ad6cebb06c3622ca2360b9 --- cui/source/options/optdict.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cui/source/options/optdict.cxx b/cui/source/options/optdict.cxx index 722a4834e0f2..bde7de1589e2 100644 --- a/cui/source/options/optdict.cxx +++ b/cui/source/options/optdict.cxx @@ -371,9 +371,9 @@ sal_uInt16 SvxEditDictionaryDialog::GetLBInsertPos(const OUString &rDicWord) SvTreeListEntry* pEntry = pWordsLB->GetEntry(j); DBG_ASSERT( pEntry, "NULL pointer"); OUString aNormEntry( getNormDicEntry_Impl( rDicWord ) ); - StringCompare eCmpRes = (StringCompare)pCollator-> + sal_Int32 nCmpRes = pCollator-> compareString( aNormEntry, getNormDicEntry_Impl( pWordsLB->GetEntryText(pEntry, 0) ) ); - if( COMPARE_LESS == eCmpRes ) + if (nCmpRes < 0) break; } if (j < pWordsLB->GetEntryCount()) // entry found?