diff options
| author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2004-10-29 08:29:30 +0000 |
|---|---|---|
| committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2004-10-29 08:29:30 +0000 |
| commit | ac54ae2dbe9ab9f6160ab8ad84ee2e7e4d9d58ef (patch) | |
| tree | f803cadc8b4d4af931531424b76590a82ac3221b /graphics/tulip/files/patch-SimpleVector.h | |
| parent | Moved to p5-HTTPD-User-Manage. (diff) | |
Unbreak with recent GCC (fix bad C++ code).
Approved by: fjoe (mentor, implicit)
Notes
Notes:
svn path=/head/; revision=120458
Diffstat (limited to 'graphics/tulip/files/patch-SimpleVector.h')
| -rw-r--r-- | graphics/tulip/files/patch-SimpleVector.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/tulip/files/patch-SimpleVector.h b/graphics/tulip/files/patch-SimpleVector.h new file mode 100644 index 000000000000..ee46beec7938 --- /dev/null +++ b/graphics/tulip/files/patch-SimpleVector.h @@ -0,0 +1,11 @@ +--- library/tulip/include/tulip/SimpleVector.h.orig Sat Nov 30 21:35:57 2002 ++++ library/tulip/include/tulip/SimpleVector.h Fri Oct 29 14:14:08 2004 +@@ -24,7 +24,7 @@ + explicit SimpleVector(size_t s) { begin=0; resize(s); } + void resize(size_t s) { + middleP=beginP+s; +- if (middle>endP || size()<capacity()/2) ++ if (this->middle>endP || size()<capacity()/2) + doRealloc(size()); + } + iterator begin() { return beginP; } |
