[Kbabel] kbabeldict/searchengine.h

Stanislav Visnovsky visnovsky at kde.org
Tue Jun 3 14:51:26 CEST 2003


Dňa Pondelok 02 Jún 2003 23:07 Andrea Rizzi napísal:
> I, in kbabeldict/searchengine.h
> is defined how a searchengine should return translation info:
>
> SearchResult class contains a
> QPtrList<TranslationInfo> descriptions;
>
> who will delete the pointers?
> The engine (if so when?) Kbabel?

From SearchEngine.cpp:

SearchResult::SearchResult()
{
    score=0;
    descriptions.setAutoDelete(true);
}

So the entries are deleted in the destructor of the SearchResult instance.

Stanislav



More information about the kbabel mailing list