Switch to unified view

a/src/query/docseqhist.cpp b/src/query/docseqhist.cpp
...
...
22
#include <cmath>
22
#include <cmath>
23
23
24
#include "docseqhist.h"
24
#include "docseqhist.h"
25
#include "rcldb.h"
25
#include "rcldb.h"
26
#include "fileudi.h"
26
#include "fileudi.h"
27
#include "internfile.h"
27
28
28
bool DocSequenceHistory::getDoc(int num, Rcl::Doc &doc, string *sh) 
29
bool DocSequenceHistory::getDoc(int num, Rcl::Doc &doc, string *sh) 
29
{
30
{
30
    // Retrieve history list
31
    // Retrieve history list
31
    if (!m_hist)
32
    if (!m_hist)
...
...
64
    doc.ipath = m_it->ipath;
65
    doc.ipath = m_it->ipath;
65
    }
66
    }
66
    return ret;
67
    return ret;
67
}
68
}
68
69
70
bool DocSequenceHistory::getEnclosing(Rcl::Doc& doc, Rcl::Doc& pdoc) 
71
{
72
    string udi;
73
    if (!FileInterner::getEnclosing(doc.url, doc.ipath, pdoc.url, pdoc.ipath,
74
                                    udi))
75
        return false;
76
    return m_db->getDoc(udi, pdoc);
77
}
78
69
int DocSequenceHistory::getResCnt()
79
int DocSequenceHistory::getResCnt()
70
{   
80
{   
71
    if (m_hlist.empty())
81
    if (m_hlist.empty())
72
    m_hlist = m_hist->getDocHistory();
82
    m_hlist = m_hist->getDocHistory();
73
    return m_hlist.size();
83
    return m_hlist.size();