sorted sequence title would never show

This commit is contained in:
dockes 2006-02-21 12:52:48 +00:00
parent b20222b150
commit 968d96266c
2 changed files with 6 additions and 5 deletions

View File

@ -16,7 +16,7 @@
*/
#ifndef _DOCSEQ_H_INCLUDED_
#define _DOCSEQ_H_INCLUDED_
/* @(#$Id: docseq.h,v 1.6 2006-02-07 10:26:49 dockes Exp $ (C) 2004 J.F.Dockes */
/* @(#$Id: docseq.h,v 1.7 2006-02-21 12:52:48 dockes Exp $ (C) 2004 J.F.Dockes */
#include "rcldb.h"
#include "history.h"
@ -27,7 +27,6 @@
history or Db query). We have an interface to make things cleaner.
*/
class DocSequence {
std::string m_title;
public:
DocSequence(const std::string &t) : m_title(t) {}
virtual ~DocSequence() {}
@ -48,6 +47,9 @@ class DocSequence {
= 0;
virtual int getResCnt() = 0;
virtual std::string title() {return m_title;}
private:
std::string m_title;
};

View File

@ -16,7 +16,7 @@
*/
#ifndef _SORTSEQ_H_INCLUDED_
#define _SORTSEQ_H_INCLUDED_
/* @(#$Id: sortseq.h,v 1.4 2006-01-30 11:15:28 dockes Exp $ (C) 2004 J.F.Dockes */
/* @(#$Id: sortseq.h,v 1.5 2006-02-21 12:52:48 dockes Exp $ (C) 2004 J.F.Dockes */
#include <vector>
#include <string>
@ -45,9 +45,8 @@ class DocSeqSorted : public DocSequence {
virtual ~DocSeqSorted() {}
virtual bool getDoc(int num, Rcl::Doc &doc, int *percent, string *sh = 0);
virtual int getResCnt() {return m_count;}
virtual std::string title() {return m_title;}
private:
std::string m_title;
int m_count;
std::vector<Rcl::Doc> m_docs;
std::vector<Rcl::Doc *> m_docsp;