summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2012-12-10 16:57:36 +0000
committerMichael Meeks <michael.meeks@suse.com>2012-12-10 20:43:45 +0000
commitcccb0bb123ac89a0a4cb8ba335ce5cb64cdc87cf (patch)
treebbde9f8545c5441163b2f0432e0131ac8f0b79c4 /cui/source
parentc479ccc438edeb7197a2d05bdb99067365d7bac0 (diff)
fdo#55570 - re-factor SvxAutocorrWordList to hide it's innards
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/tabpages/autocdlg.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 8dea32884d39..66bf164ded56 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -1024,7 +1024,9 @@ void OfaAutocorrReplacePage::RefillReplaceBox(sal_Bool bFromReset,
SvxAutoCorrect* pAutoCorrect = SvxAutoCorrCfg::Get().GetAutoCorrect();
SvxAutocorrWordList* pWordList = pAutoCorrect->LoadAutocorrWordList(eLang);
aReplaceTLB.SetUpdateMode(sal_False);
- for( SvxAutocorrWordList::iterator it = pWordList->begin(); it != pWordList->end(); ++it )
+ SvxAutocorrWordList::Content aContent = pWordList->getSortedContent();
+ for( SvxAutocorrWordList::Content::const_iterator it = aContent.begin();
+ it != aContent.end(); ++it )
{
SvxAutocorrWord* pWordPtr = *it;
sal_Bool bTextOnly = pWordPtr->IsTextOnly();