1.22 compat (shared_ptr) for kde4 kio
This commit is contained in:
parent
841913f154
commit
f7d0c08a8f
@ -194,7 +194,7 @@ void RecollProtocol::stat(const KUrl & url)
|
|||||||
} else if (ingest.isResult(&qd, &num)) {
|
} else if (ingest.isResult(&qd, &num)) {
|
||||||
if (syncSearch(qd)) {
|
if (syncSearch(qd)) {
|
||||||
Rcl::Doc doc;
|
Rcl::Doc doc;
|
||||||
if (num >= 0 && !m_source.isNull() &&
|
if (num >= 0 && m_source &&
|
||||||
m_source->getDoc(num, doc)) {
|
m_source->getDoc(num, doc)) {
|
||||||
entry = resultToUDSEntry(doc, num);
|
entry = resultToUDSEntry(doc, num);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@ -254,7 +254,7 @@ void RecollProtocol::showPreview(const Rcl::Doc& idoc)
|
|||||||
ptr.set_inputhtml(!fdoc.mimetype.compare("text/html"));
|
ptr.set_inputhtml(!fdoc.mimetype.compare("text/html"));
|
||||||
list<string> otextlist;
|
list<string> otextlist;
|
||||||
HighlightData hdata;
|
HighlightData hdata;
|
||||||
if (!m_source.isNull())
|
if (m_source)
|
||||||
m_source->getTerms(hdata);
|
m_source->getTerms(hdata);
|
||||||
ptr.plaintorich(fdoc.text, otextlist, hdata);
|
ptr.plaintorich(fdoc.text, otextlist, hdata);
|
||||||
|
|
||||||
|
|||||||
@ -268,7 +268,7 @@ void RecollProtocol::get(const KUrl& url)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Rcl::Doc doc;
|
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());
|
mimeType(doc.mimetype.c_str());
|
||||||
redirection(KUrl::fromLocalFile((const char *)(doc.url.c_str()+7)));
|
redirection(KUrl::fromLocalFile((const char *)(doc.url.c_str()+7)));
|
||||||
goto out;
|
goto out;
|
||||||
@ -278,7 +278,7 @@ void RecollProtocol::get(const KUrl& url)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Rcl::Doc doc;
|
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);
|
showPreview(doc);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user