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 ;