]> git.lyx.org Git - features.git/commitdiff
bug 186
authorLars Gullik Bjønnes <larsbj@gullik.org>
Mon, 14 Jan 2002 00:26:17 +0000 (00:26 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Mon, 14 Jan 2002 00:26:17 +0000 (00:26 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3363 a592a061-630c-0410-9148-cb99ea01b6c8

src/BufferView2.C
src/ChangeLog

index 6072b4548345bb74ee85ee1708d6b4a1bb9f27ec..15f94713bb0bbeca677350dbe5ef3df0bbf28ace 100644 (file)
@@ -650,9 +650,10 @@ bool BufferView::ChangeRefsIfUnique(string const & from, string const & to)
 {
        // Check if the label 'from' appears more than once
        vector<string> labels = buffer()->getLabelList();
-       // count is broken on some systems, so use the HP version
-       int res;
-       count(labels.begin(), labels.end(), from, res);
+       // count is broken on some systems, so use the HP version (anon)
+       // Which does not exist on certain systems, so _we_
+       // use the standard version. (Lgb)
+       int res = count(labels.begin(), labels.end(), from);
        if (res > 1)
                return false;
 
index b23fdf97a7418b7f8e28c572a24858aadf401b74..9e279e1d0fccc2a7b2de99f5ba9bd73f0d3489a1 100644 (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>
 
        * bufferlist.C (readFile): create the buffer _after_ checking that