[Kbabel] kbabeldict/searchengine.h

Stanislav Visnovsky visnovsky at kde.org
Tue Jun 3 16:40:24 CEST 2003


On Tue, 3 Jun 2003, Andrea Rizzi wrote:

> > SearchResult::SearchResult()
> > {
> >     score=0;
> >     descriptions.setAutoDelete(true);
> > }
> >
> > So the entries are deleted in the destructor of the SearchResult instance.
> Ok, so the searchresults cannot be copyed and the Engine itself should delete 
> it on clearResults().

Yes. The engine does that by setting auto-delete on results and doing 
results.clear() in SearchEngine::clearResults().

Stanislav



More information about the kbabel mailing list