X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FDepTable.C;h=0bc13ef436c0ef739596e4488b13f2006acbd0a9;hb=ab254289c832cd045c56e6012d14b048618cb833;hp=8af0420aaf24255fb78069f60bce754c0405e432;hpb=d6665cba427b04ae37f42c846398cad518d2be0f;p=lyx.git diff --git a/src/DepTable.C b/src/DepTable.C index 8af0420aaf..0bc13ef436 100644 --- a/src/DepTable.C +++ b/src/DepTable.C @@ -3,9 +3,9 @@ * * LyX, The Document Processor * Copyright 1995 Matthias Ettrich - * Copyright 1995-2000 The LyX Team. + * Copyright 1995-2001 The LyX Team. * - * This file is Copyright 1996-2000 + * This file is Copyright 1996-2001 * Lars Gullik Bjønnes * * ====================================================== @@ -46,7 +46,7 @@ void DepTable::insert(string const & fi, void DepTable::update() { - for(DepList::iterator itr = deplist.begin(); + for (DepList::iterator itr = deplist.begin(); itr != deplist.end(); ++itr) { unsigned long const one = (*itr).second.second; @@ -113,7 +113,8 @@ bool DepTable::exist(string const & fil) const void DepTable::remove_files_with_extension(string const & suf) { DepList tmp; - for (DepList::const_iterator cit = deplist.begin(); + // we want const_iterator (Lgb) + for (DepList::iterator cit = deplist.begin(); cit != deplist.end(); ++cit) { if (!suffixIs((*cit).first, suf)) tmp[(*cit).first] = (*cit).second;