diff options
Diffstat (limited to 'src/modules/help/index.cpp')
| -rwxr-xr-x | src/modules/help/index.cpp | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/modules/help/index.cpp b/src/modules/help/index.cpp index 540273d0e..d1c629793 100755 --- a/src/modules/help/index.cpp +++ b/src/modules/help/index.cpp @@ -69,23 +69,15 @@ #include <ctype.h> -#ifndef COMPILE_USE_QT4 -int TermList::compareItems( QPtrCollection::Item i1, QPtrCollection::Item i2 ) +int kvi_compare(const Term * p1,const Term * p2) { - - if( ( (Term*)i1 )->frequency == ( (Term*)i2 )->frequency ) - - return 0; - - if( ( (Term*)i1 )->frequency < ( (Term*)i2 )->frequency ) - - return -1; - - return 1; - + if(p1->frequency == p2->frequency) + return 0; + if(p1->frequency < p2->frequency) + return -1; + return 1; } -#endif QDataStream &operator>>( QDataStream &s, Document &l ) |
