mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-05 13:19:32 -04:00
Tweaked dbase functions for ftSearch functionality.
(made a bunch of functions "const") git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@674 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
de2956637b
commit
d7e1a90c28
8 changed files with 64 additions and 46 deletions
|
@ -946,7 +946,7 @@ int DirEntry::saveEntry(std::ostringstream &oss)
|
|||
}
|
||||
|
||||
|
||||
int FileIndex::searchHash(std::string hash, std::list<FileEntry *> &results)
|
||||
int FileIndex::searchHash(std::string hash, std::list<FileEntry *> &results) const
|
||||
{
|
||||
DirEntry *ndir = NULL;
|
||||
std::list<DirEntry *> dirlist;
|
||||
|
@ -978,7 +978,7 @@ int FileIndex::searchHash(std::string hash, std::list<FileEntry *> &results)
|
|||
}
|
||||
|
||||
|
||||
int FileIndex::searchTerms(std::list<std::string> terms, std::list<FileEntry *> &results)
|
||||
int FileIndex::searchTerms(std::list<std::string> terms, std::list<FileEntry *> &results) const
|
||||
{
|
||||
DirEntry *ndir = NULL;
|
||||
std::list<DirEntry *> dirlist;
|
||||
|
@ -1029,7 +1029,7 @@ int FileIndex::searchTerms(std::list<std::string> terms, std::list<FileEntry *>
|
|||
return 0;
|
||||
}
|
||||
|
||||
int FileIndex::searchBoolExp(Expression * exp, std::list<FileEntry *> &results)
|
||||
int FileIndex::searchBoolExp(Expression * exp, std::list<FileEntry *> &results) const
|
||||
{
|
||||
DirEntry *ndir = NULL;
|
||||
std::list<DirEntry *> dirlist;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue