git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3363 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Lars Gullik Bjønnes 2002-01-14 00:26:17 +00:00
parent 5614c0459a
commit bbb3412f1e
2 changed files with 9 additions and 3 deletions

View File

@ -650,9 +650,10 @@ bool BufferView::ChangeRefsIfUnique(string const & from, string const & to)
{ {
// Check if the label 'from' appears more than once // Check if the label 'from' appears more than once
vector<string> labels = buffer()->getLabelList(); vector<string> labels = buffer()->getLabelList();
// count is broken on some systems, so use the HP version // count is broken on some systems, so use the HP version (anon)
int res; // Which does not exist on certain systems, so _we_
count(labels.begin(), labels.end(), from, res); // use the standard version. (Lgb)
int res = count(labels.begin(), labels.end(), from);
if (res > 1) if (res > 1)
return false; return false;

View File

@ -1,3 +1,8 @@
2002-01-14 Lars Gullik Bjønnes <larsbj@birdstep.com>
* BufferView2.C (ChangeRefsIfUnique): use standard version of
count.
2002-01-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr> 2002-01-13 Jean-Marc Lasgouttes <lasgouttes@freesurf.fr>
* bufferlist.C (readFile): create the buffer _after_ checking that * bufferlist.C (readFile): create the buffer _after_ checking that