if (deplist.find(f) == deplist.end()) {
if (upd) {
one = two;
- two = lyx::sum(f.c_str());
+ two = lyx::sum(f);
}
deplist[f] = make_pair(one, two);
}
for(DepList::iterator itr = deplist.begin();
itr != deplist.end();
++itr) {
- unsigned long one = (*itr).second.second;
- unsigned long two = lyx::sum((*itr).first.c_str());
+ unsigned long const one = (*itr).second.second;
+ unsigned long const two = lyx::sum((*itr).first);
(*itr).second = make_pair(one, two);
if (lyxerr.debugging(Debug::DEPEND)) {
lyxerr << "Update dep: " << (*itr).first << " "
for (DepList::const_iterator cit = deplist.begin();
cit != deplist.end();
++cit) {
- if (suffixIs((*cit).first, ext.c_str())) {
+ if (suffixIs((*cit).first, ext)) {
if ((*cit).second.first != (*cit).second.second)
return true;
}
DepList tmp;
for (DepList::const_iterator cit = deplist.begin();
cit != deplist.end(); ++cit) {
- if (!suffixIs((*cit).first, suf.c_str()))
+ if (!suffixIs((*cit).first, suf))
tmp[(*cit).first] = (*cit).second;
}
deplist.swap(tmp);
{
ofstream ofs(f.c_str());
for (DepList::const_iterator cit = deplist.begin();
- cit != deplist.end();
- ++cit) {
+ cit != deplist.end(); ++cit) {
if (lyxerr.debugging(Debug::DEPEND)) {
lyxerr << "Write dep: "
<< (*cit).first << " "