diff --git a/src/query/sortseq.cpp b/src/query/sortseq.cpp index e68aca49..4c53f460 100644 --- a/src/query/sortseq.cpp +++ b/src/query/sortseq.cpp @@ -1,5 +1,5 @@ #ifndef lint -static char rcsid[] = "@(#$Id: sortseq.cpp,v 1.8 2006-09-21 09:37:28 dockes Exp $ (C) 2005 J.F.Dockes"; +static char rcsid[] = "@(#$Id: sortseq.cpp,v 1.9 2006-12-05 15:18:48 dockes Exp $ (C) 2005 J.F.Dockes"; #endif /* * This program is free software; you can redistribute it and/or modify @@ -82,7 +82,7 @@ public: } }; -DocSeqSorted::DocSeqSorted(DocSequence &iseq, DocSeqSortSpec &sortspec, +DocSeqSorted::DocSeqSorted(RefCntr iseq, DocSeqSortSpec &sortspec, const std::string &t) : DocSequence(t) { @@ -92,7 +92,7 @@ DocSeqSorted::DocSeqSorted(DocSequence &iseq, DocSeqSortSpec &sortspec, int i; for (i = 0; i < m_spec.sortwidth; i++) { int percent; - if (!iseq.getDoc(i, m_docs[i], &percent)) { + if (!iseq->getDoc(i, m_docs[i], &percent)) { LOGERR(("DocSeqSorted: getDoc failed for doc %d\n", i)); break; } diff --git a/src/query/sortseq.h b/src/query/sortseq.h index e8d60d8f..16e8bd02 100644 --- a/src/query/sortseq.h +++ b/src/query/sortseq.h @@ -16,11 +16,12 @@ */ #ifndef _SORTSEQ_H_INCLUDED_ #define _SORTSEQ_H_INCLUDED_ -/* @(#$Id: sortseq.h,v 1.7 2006-09-21 09:37:28 dockes Exp $ (C) 2004 J.F.Dockes */ +/* @(#$Id: sortseq.h,v 1.8 2006-12-05 15:18:48 dockes Exp $ (C) 2004 J.F.Dockes */ #include #include +#include "refcntr.h" #include "docseq.h" class DocSeqSortSpec { @@ -42,7 +43,7 @@ class DocSeqSortSpec { */ class DocSeqSorted : public DocSequence { public: - DocSeqSorted(DocSequence &iseq, DocSeqSortSpec &sortspec, + DocSeqSorted(RefCntr iseq, DocSeqSortSpec &sortspec, const std::string &t); virtual ~DocSeqSorted() {} virtual bool getDoc(int num, Rcl::Doc &doc, int *percent, string *sh = 0);