use vector instead of list for execmd arg list
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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" :
|
||||
|
||||
Reference in New Issue
Block a user