From be6370ef132165d3acbe4dcb7d078a735b0bb4bf Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 25 Sep 2016 21:34:18 +0200 Subject: [PATCH] added missing code for searchTerms in new p3filelists service --- libretroshare/src/file_sharing/dir_hierarchy.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libretroshare/src/file_sharing/dir_hierarchy.cc b/libretroshare/src/file_sharing/dir_hierarchy.cc index 28606513d..d5cd7b4f6 100644 --- a/libretroshare/src/file_sharing/dir_hierarchy.cc +++ b/libretroshare/src/file_sharing/dir_hierarchy.cc @@ -23,6 +23,7 @@ * */ #include +#include #include #include "util/rsdir.h" #include "util/rsprint.h" @@ -687,13 +688,12 @@ int InternalFileHierarchyStorage::searchTerms(const std::list& term { /* always ignore case */ const std::string &str2 = (*iter); -#ifdef TODO - if(str1.end() != std::search( str1.begin(), str1.end(), str2.begin(), str2.end(), CompareCharIC() )) + + if(str1.end() != std::search( str1.begin(), str1.end(), str2.begin(), str2.end(), RsRegularExpression::CompareCharIC() )) { - results.push_back(fit->second); + results.push_back(it->second); break; } -#endif } } return 0 ;