From 5c6db5331c10df3dd95fe582ebaa92183d098e32 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 28 Nov 2012 13:20:52 +0100 Subject: [PATCH] use const rclconfig --- src/rcldb/searchdata.cpp | 2 +- src/rcldb/searchdata.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rcldb/searchdata.cpp b/src/rcldb/searchdata.cpp index 4716ab22..b2edc35e 100644 --- a/src/rcldb/searchdata.cpp +++ b/src/rcldb/searchdata.cpp @@ -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& tps) +bool SearchData::expandFileTypes(const RclConfig *cfg, vector& tps) { if (!cfg) { LOGFATAL(("Db::expandFileTypes: null configuration!!\n")); diff --git a/src/rcldb/searchdata.h b/src/rcldb/searchdata.h index 940ded1f..5b85ec26 100644 --- a/src/rcldb/searchdata.h +++ b/src/rcldb/searchdata.h @@ -222,7 +222,7 @@ private: // value during "find-as-you-type" operations from the GUI int m_softmaxexpand; - bool expandFileTypes(RclConfig *cfg, std::vector& exptps); + bool expandFileTypes(const RclConfig *cfg, std::vector& exptps); bool clausesToQuery(Rcl::Db &db, SClType tp, std::vector& query, string& reason, void *d);