Switch to unified view
a/src/query/docseqdb.cpp | b/src/query/docseqdb.cpp | ||
---|---|---|---|
... |
... |
||
120 | return -1; |
120 | return -1; |
121 | } |
121 | } |
122 | 122 | ||
123 | bool DocSequenceDb::getEnclosing(Rcl::Doc& doc, Rcl::Doc& pdoc) |
123 | bool DocSequenceDb::getEnclosing(Rcl::Doc& doc, Rcl::Doc& pdoc) |
124 | { |
124 | { |
125 | if (!setQuery()) |
125 | // Note: no need for setQuery here, we're just passing through a |
126 | return false; |
126 | // query-independant request |
127 | |||
127 | string udi; |
128 | string udi; |
128 | if (!FileInterner::getEnclosing(doc.url, doc.ipath, pdoc.url, pdoc.ipath, |
129 | if (!FileInterner::getEnclosing(doc.url, doc.ipath, pdoc.url, pdoc.ipath, |
129 | udi)) |
130 | udi)) |
130 | return false; |
131 | return false; |
131 | bool dbret = m_q->whatDb()->getDoc(udi, pdoc); |
132 | bool dbret = m_q->whatDb()->getDoc(udi, pdoc); |