make stringtotokens use vector
This commit is contained in:
@@ -752,7 +752,7 @@ FileInterner::Status FileInterner::internfile(Rcl::Doc& doc, string& ipath)
|
||||
vector<string> vipath(MAXHANDLERS);
|
||||
int vipathidx = 0;
|
||||
if (!ipath.empty()) {
|
||||
list<string> lipath;
|
||||
vector<string> lipath;
|
||||
stringToTokens(ipath, lipath, isep, true);
|
||||
vipath.insert(vipath.begin(), lipath.begin(), lipath.end());
|
||||
if (!m_handlers.back()->skip_to_document(vipath[m_handlers.size()-1])){
|
||||
|
||||
@@ -102,14 +102,14 @@ bool MimeHandlerExecMultiple::readDataElement(string& name, string &data)
|
||||
}
|
||||
|
||||
// We're expecting something like Name: len\n
|
||||
list<string> tokens;
|
||||
vector<string> tokens;
|
||||
stringToTokens(ibuf, tokens);
|
||||
if (tokens.size() != 2) {
|
||||
LOGERR(("MHExecMultiple: bad line in filter output: [%s]\n",
|
||||
ibuf.c_str()));
|
||||
return false;
|
||||
}
|
||||
list<string>::iterator it = tokens.begin();
|
||||
vector<string>::iterator it = tokens.begin();
|
||||
name = *it++;
|
||||
string& slen = *it;
|
||||
int len;
|
||||
|
||||
Reference in New Issue
Block a user