--- a/src/qtgui/rclmain_w.cpp
+++ b/src/qtgui/rclmain_w.cpp
@@ -703,7 +703,7 @@
break;
case IXST_NOTRUNNING:
{
- list<string> args;
+ vector<string> args;
args.push_back("-c");
args.push_back(theconfig->getConfDir());
m_idxproc = new ExecCmd;
@@ -729,7 +729,7 @@
QMessageBox::Cancel,
QMessageBox::NoButton);
if (rep == QMessageBox::Ok) {
- list<string> args;
+ vector<string> args;
args.push_back("-c");
args.push_back(theconfig->getConfDir());
args.push_back("-z");
@@ -1256,7 +1256,7 @@
vector<string> paths;
if (ConfIndexer::docsToPaths(docs, paths)) {
- list<string> args;
+ vector<string> args;
args.push_back("-c");
args.push_back(theconfig->getConfDir());
args.push_back("-i");
@@ -1522,7 +1522,7 @@
ignoreipath = stringToBool(cmdplusattr);
// Split the command line
- list<string> lcmd;
+ vector<string> lcmd;
if (!stringToStrings(cmd, lcmd)) {
QMessageBox::warning(0, "Recoll",
tr("Bad viewer command line for %1: [%2]\n"
@@ -1633,7 +1633,7 @@
}
// Get rid of the command name. lcmd is now argv[1...n]
- lcmd.pop_front();
+ lcmd.erase(lcmd.begin());
// Substitute %xx inside arguments
string efftime;
@@ -1658,7 +1658,7 @@
subs[it->first] = it->second;
}
string ncmd;
- for (list<string>::iterator it = lcmd.begin();
+ for (vector<string>::iterator it = lcmd.begin();
it != lcmd.end(); it++) {
pcSubst(*it, ncmd, subs);
LOGDEB(("%s->%s\n", it->c_str(), ncmd.c_str()));