- else {
- WordList * wl = new WordList;
- (*globalWordList)[lang] = wl;
- return *wl;
- }
-}
-
-
-void WordList::cleanupWordLists()
-{
- if (!theGlobalWordList.hasLocalData())
- return;
- GlobalWordList * globalWordList = theGlobalWordList.localData();
- GlobalWordList::const_iterator it = globalWordList->begin();
- for (; it != globalWordList->end(); ++it)
- delete it->second;
- globalWordList->clear();