more delistification

This commit is contained in:
Jean-Francois Dockes
2012-04-12 08:15:50 +02:00
parent ec7b40a52e
commit 4eaf12fb9c
16 changed files with 92 additions and 96 deletions
+2 -2
View File
@@ -184,9 +184,9 @@ ConfTopPanelW::ConfTopPanelW(QWidget *parent, ConfNull *config)
setSzPol(eskp, QSizePolicy::Preferred, QSizePolicy::Preferred, 1, 3);
gl1->addWidget(eskp, 1, 0, 1, 2);
list<string> cstemlangs = Rcl::Db::getStemmerNames();
vector<string> cstemlangs = Rcl::Db::getStemmerNames();
QStringList stemlangs;
for (list<string>::const_iterator it = cstemlangs.begin();
for (vector<string>::const_iterator it = cstemlangs.begin();
it != cstemlangs.end(); it++) {
stemlangs.push_back(QString::fromUtf8(it->c_str()));
}
+2 -1
View File
@@ -1083,7 +1083,8 @@ void RclMain::showActiveTypes()
// Build the set of mtypes, stripping the prefix
set<string> mtypesfromdb;
for (list<Rcl::TermMatchEntry>::const_iterator it = matches.entries.begin();
for (vector<Rcl::TermMatchEntry>::const_iterator it =
matches.entries.begin();
it != matches.entries.end(); it++) {
mtypesfromdb.insert(it->term.substr(prefix.size()));
}
+1 -1
View File
@@ -184,7 +184,7 @@ void SpellW::doExpand()
resTW->setItem(0, 0, new QTableWidgetItem(tr("No expansion found")));
} else {
int row = 0;
for (list<Rcl::TermMatchEntry>::iterator it = res.entries.begin();
for (vector<Rcl::TermMatchEntry>::iterator it = res.entries.begin();
it != res.entries.end(); it++) {
LOGDEB(("SpellW::expand: %6d [%s]\n", it->wcf, it->term.c_str()));
char num[30];
+1 -1
View File
@@ -299,7 +299,7 @@ void SSearch::completion()
ok = true;
} else {
QStringList lst;
for (list<Rcl::TermMatchEntry>::iterator it = tmres.entries.begin();
for (vector<Rcl::TermMatchEntry>::iterator it = tmres.entries.begin();
it != tmres.entries.end(); it++) {
lst.push_back(QString::fromUtf8(it->term.c_str()));
}