1.22 compat (shared_ptr) for kde4 kio
This commit is contained in:
parent
8a7fec1b97
commit
6c970d7d43
3 changed files with 4 additions and 4 deletions
|
@ -194,7 +194,7 @@ void RecollProtocol::stat(const KUrl & url)
|
|||
} else if (ingest.isResult(&qd, &num)) {
|
||||
if (syncSearch(qd)) {
|
||||
Rcl::Doc doc;
|
||||
if (num >= 0 && !m_source.isNull() &&
|
||||
if (num >= 0 && m_source &&
|
||||
m_source->getDoc(num, doc)) {
|
||||
entry = resultToUDSEntry(doc, num);
|
||||
} else {
|
||||
|
|
|
@ -254,7 +254,7 @@ void RecollProtocol::showPreview(const Rcl::Doc& idoc)
|
|||
ptr.set_inputhtml(!fdoc.mimetype.compare("text/html"));
|
||||
list<string> otextlist;
|
||||
HighlightData hdata;
|
||||
if (!m_source.isNull())
|
||||
if (m_source)
|
||||
m_source->getTerms(hdata);
|
||||
ptr.plaintorich(fdoc.text, otextlist, hdata);
|
||||
|
||||
|
|
|
@ -268,7 +268,7 @@ void RecollProtocol::get(const KUrl& url)
|
|||
return;
|
||||
}
|
||||
Rcl::Doc doc;
|
||||
if (resnum >= 0 && !m_source.isNull() && m_source->getDoc(resnum, doc)) {
|
||||
if (resnum >= 0 && m_source && m_source->getDoc(resnum, doc)) {
|
||||
mimeType(doc.mimetype.c_str());
|
||||
redirection(KUrl::fromLocalFile((const char *)(doc.url.c_str()+7)));
|
||||
goto out;
|
||||
|
@ -278,7 +278,7 @@ void RecollProtocol::get(const KUrl& url)
|
|||
return;
|
||||
}
|
||||
Rcl::Doc doc;
|
||||
if (resnum >= 0 && !m_source.isNull() && m_source->getDoc(resnum, doc)) {
|
||||
if (resnum >= 0 && m_source && m_source->getDoc(resnum, doc)) {
|
||||
showPreview(doc);
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue