use vector instead of list for execmd arg list

This commit is contained in:
Jean-Francois Dockes
2012-04-11 15:36:49 +02:00
parent c7c9c49437
commit 78bd8d63da
14 changed files with 28 additions and 32 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ static bool uncompressfile(RclConfig *conf, const string& ifn,
// Substitute file name and temp dir in command elements
list<string>::const_iterator it = cmdv.begin();
++it;
list<string> args;
vector<string> args;
map<char, string> subs;
subs['f'] = ifn;
subs['t'] = tdir.dirname();
+1 -1
View File
@@ -88,7 +88,7 @@ bool MimeHandlerExec::next_document()
// Build parameter list: delete cmd name and add the file name
list<string>::iterator it = params.begin();
list<string>myparams(++it, params.end());
vector<string>myparams(++it, params.end());
myparams.push_back(m_fn);
if (!m_ipath.empty())
myparams.push_back(m_ipath);
+1 -1
View File
@@ -52,7 +52,7 @@ bool MimeHandlerExecMultiple::startCmd()
// Build parameter list: delete cmd name
list<string>::iterator it = params.begin();
list<string>myparams(++it, params.end());
vector<string>myparams(++it, params.end());
// Start filter
m_cmd.putenv(m_forPreview ? "RECOLL_FILTER_FORPREVIEW=yes" :