diff options
author | Karl Berry <karl@freefriends.org> | 2015-01-11 22:23:57 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2015-01-11 22:23:57 +0000 |
commit | ed0cfbb5582f3534884edd499c2d7bd38611bd9a (patch) | |
tree | da27acd14e4eb3c729c7dfc9da882df0824b74a6 | |
parent | 7a2e44e2aceae1c776a95f4709bcdfbaefd528a7 (diff) |
consistent use of valid(), per koch (tlbuild 11 Jan 2015 11:51:25)
git-svn-id: svn://tug.org/texlive/trunk@36023 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-1.9-PATCHES/patch-09-funccall | 13 | ||||
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-1.9/src/VectorIterator.h | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.9-PATCHES/patch-09-funccall b/Build/source/texk/dvisvgm/dvisvgm-1.9-PATCHES/patch-09-funccall new file mode 100644 index 00000000000..09c5bddb4b1 --- /dev/null +++ b/Build/source/texk/dvisvgm/dvisvgm-1.9-PATCHES/patch-09-funccall @@ -0,0 +1,13 @@ +Index: VectorIterator.h +=================================================================== +--- VectorIterator.h (revision 36021) ++++ VectorIterator.h (working copy) +@@ -97,7 +97,7 @@ + bool operator > (const VectorIterator &it) const {return _pos > it._pos;} + + size_t distanceToLast () const { +- if (valid) ++ if (valid()) + return _vector.size()-_pos-1; + return 0; + } diff --git a/Build/source/texk/dvisvgm/dvisvgm-1.9/src/VectorIterator.h b/Build/source/texk/dvisvgm/dvisvgm-1.9/src/VectorIterator.h index c7235b82fdd..3492308b785 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-1.9/src/VectorIterator.h +++ b/Build/source/texk/dvisvgm/dvisvgm-1.9/src/VectorIterator.h @@ -97,7 +97,7 @@ class VectorIterator bool operator > (const VectorIterator &it) const {return _pos > it._pos;} size_t distanceToLast () const { - if (valid) + if (valid()) return _vector.size()-_pos-1; return 0; } |