Moved docsToPaths() method from confindexer to function in rcldoc to simplify linking. confindexer.o not in librecoll any more.+small std namespace fixes
This commit is contained in:
@@ -428,7 +428,7 @@ void RclMain::updateIdxForDocs(vector<Rcl::Doc>& docs)
|
||||
}
|
||||
|
||||
vector<string> paths;
|
||||
if (ConfIndexer::docsToPaths(docs, paths)) {
|
||||
if (Rcl::docsToPaths(docs, paths)) {
|
||||
vector<string> args{"-c", theconfig->getConfDir(), "-e", "-i"};
|
||||
args.insert(args.end(), paths.begin(), paths.end());
|
||||
m_idxproc = new ExecCmd;
|
||||
|
||||
@@ -236,7 +236,7 @@ string QtGuiResListPager::iconUrl(RclConfig *config, Rcl::Doc& doc)
|
||||
vector<Rcl::Doc> docs;
|
||||
docs.push_back(doc);
|
||||
vector<string> paths;
|
||||
ConfIndexer::docsToPaths(docs, paths);
|
||||
Rcl::docsToPaths(docs, paths);
|
||||
if (!paths.empty()) {
|
||||
string path;
|
||||
LOGDEB2("ResList::iconUrl: source path [" << paths[0] << "]\n");
|
||||
|
||||
@@ -117,7 +117,7 @@ string ResTablePager::iconUrl(RclConfig *config, Rcl::Doc& doc)
|
||||
vector<Rcl::Doc> docs;
|
||||
docs.push_back(doc);
|
||||
vector<string> paths;
|
||||
ConfIndexer::docsToPaths(docs, paths);
|
||||
Rcl::docsToPaths(docs, paths);
|
||||
if (!paths.empty()) {
|
||||
string path;
|
||||
if (thumbPathForUrl(cstr_fileu + paths[0], 128, path)) {
|
||||
|
||||
Reference in New Issue
Block a user