Switch to unified view

a/src/index/indexer.cpp b/src/index/indexer.cpp
...
...
248
    vector<string>::const_iterator it;
248
    vector<string>::const_iterator it;
249
    for (it = dblangs.begin(); it != dblangs.end(); it++) {
249
    for (it = dblangs.begin(); it != dblangs.end(); it++) {
250
        if (find(langs.begin(), langs.end(), *it) == langs.end())
250
        if (find(langs.begin(), langs.end(), *it) == langs.end())
251
        m_db.deleteStemDb(*it);
251
        m_db.deleteStemDb(*it);
252
    }
252
    }
253
  for (it = langs.begin(); it != langs.end(); it++) {
254
      if (m_updater && !m_updater->update(DbIxStatus::DBIXS_STEMDB, *it))
255
      return false;
256
        m_db.createStemDb(*it);
253
    m_db.createStemDbs(langs);
257
  }
258
    }
254
    }
259
    m_db.close();
255
    m_db.close();
260
    return true;
256
    return true;
261
}
257
}
262
258
263
bool ConfIndexer::createStemDb(const string &lang)
259
bool ConfIndexer::createStemDb(const string &lang)
264
{
260
{
265
    if (!m_db.open(Rcl::Db::DbUpd)) {
261
    if (!m_db.open(Rcl::Db::DbUpd)) {
266
    return false;
262
    return false;
267
    }
263
    }
268
    return m_db.createStemDb(lang);
264
    return m_db.createStemDbs(vector<string>(1, lang));
269
}
265
}
270
266
271
// The language for the aspell dictionary is handled internally by the aspell
267
// The language for the aspell dictionary is handled internally by the aspell
272
// module, either from a configuration variable or the NLS environment.
268
// module, either from a configuration variable or the NLS environment.
273
bool ConfIndexer::createAspellDict()
269
bool ConfIndexer::createAspellDict()