use const rclconfig

This commit is contained in:
Jean-Francois Dockes 2012-11-28 13:20:52 +01:00
parent fe6664faa9
commit 30516ceb52
2 changed files with 2 additions and 2 deletions

View file

@ -74,7 +74,7 @@ void SearchData::commoninit()
// which could be searched by file name. It would probably be
// preferable to do a termMatch() on field "mtype", which would
// retrieve all values from the index.
bool SearchData::expandFileTypes(RclConfig *cfg, vector<string>& tps)
bool SearchData::expandFileTypes(const RclConfig *cfg, vector<string>& tps)
{
if (!cfg) {
LOGFATAL(("Db::expandFileTypes: null configuration!!\n"));

View file

@ -222,7 +222,7 @@ private:
// value during "find-as-you-type" operations from the GUI
int m_softmaxexpand;
bool expandFileTypes(RclConfig *cfg, std::vector<std::string>& exptps);
bool expandFileTypes(const RclConfig *cfg, std::vector<std::string>& exptps);
bool clausesToQuery(Rcl::Db &db, SClType tp,
std::vector<SearchDataClause*>& query,
string& reason, void *d);