cosmetics: list -> vector in more places
This commit is contained in:
@@ -127,8 +127,8 @@ public:
|
||||
confstr += line + "\n";
|
||||
}
|
||||
ConfSimple fields(confstr, 1);
|
||||
list<string> names = fields.getNames(cstr_null);
|
||||
for (list<string>::iterator it = names.begin();
|
||||
vector<string> names = fields.getNames(cstr_null);
|
||||
for (vector<string>::iterator it = names.begin();
|
||||
it != names.end(); it++) {
|
||||
string value;
|
||||
fields.get(*it, value, cstr_null);
|
||||
|
||||
@@ -17,6 +17,9 @@
|
||||
#ifndef _beaglequeue_h_included_
|
||||
#define _beaglequeue_h_included_
|
||||
|
||||
#include <list>
|
||||
using std::list;
|
||||
|
||||
/**
|
||||
* Process the Beagle indexing queue.
|
||||
*
|
||||
|
||||
@@ -239,13 +239,13 @@ bool ConfIndexer::createStemmingDatabases()
|
||||
LOGERR(("ConfIndexer::createStemmingDb: could not open db\n"))
|
||||
return false;
|
||||
}
|
||||
list<string> langs;
|
||||
vector<string> langs;
|
||||
stringToStrings(slangs, langs);
|
||||
|
||||
// Get the list of existing stem dbs from the database (some may have
|
||||
// been manually created, we just keep those from the config
|
||||
list<string> dblangs = m_db.getStemLangs();
|
||||
list<string>::const_iterator it;
|
||||
vector<string> dblangs = m_db.getStemLangs();
|
||||
vector<string>::const_iterator it;
|
||||
for (it = dblangs.begin(); it != dblangs.end(); it++) {
|
||||
if (find(langs.begin(), langs.end(), *it) == langs.end())
|
||||
m_db.deleteStemDb(*it);
|
||||
|
||||
Reference in New Issue
Block a user