diff --git a/libsearch/searchinterface/searchtasks/file-content-search-task.cpp b/libsearch/searchinterface/searchtasks/file-content-search-task.cpp index 3292c9e..2c94abb 100644 --- a/libsearch/searchinterface/searchtasks/file-content-search-task.cpp +++ b/libsearch/searchinterface/searchtasks/file-content-search-task.cpp @@ -210,7 +210,7 @@ inline Xapian::Query FileContentSearchWorker::createQuery() { std::vector v; - for (const auto &keyword : m_searchController->getKeyword()) { + for (auto &keyword : m_searchController->getKeyword()) { std::vector sKeyWord = ChineseSegmentation::getInstance()->callSegment(keyword); for(const auto & c : sKeyWord) {