diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2013-06-04 10:03:18 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2013-06-04 10:03:18 +0000 |
commit | 92f330d01930ed4a862e42044b6531f0395e98d1 (patch) | |
tree | 94d5b050a5b97c1c044268f1b1aa9f0443b79f23 /graphics/qslim/files/patch-mixkit__src__MxDynBlock.h | |
parent | - Update to 3.6.9.5 (diff) |
- Fix build with clang
PR: 179225
Submitted by: Ports Fury
Notes
Notes:
svn path=/head/; revision=319848
Diffstat (limited to 'graphics/qslim/files/patch-mixkit__src__MxDynBlock.h')
-rw-r--r-- | graphics/qslim/files/patch-mixkit__src__MxDynBlock.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/graphics/qslim/files/patch-mixkit__src__MxDynBlock.h b/graphics/qslim/files/patch-mixkit__src__MxDynBlock.h new file mode 100644 index 000000000000..605e88e2befd --- /dev/null +++ b/graphics/qslim/files/patch-mixkit__src__MxDynBlock.h @@ -0,0 +1,29 @@ +--- mixkit/src/MxDynBlock.h.orig ++++ mixkit/src/MxDynBlock.h +@@ -35,13 +35,13 @@ + + void room_for(int len) + { +- if( length()<len ) resize(len); ++ if( length()<len ) this->resize(len); + fill = len; + } + + T& add() + { +- if( length()==total_space() ) resize(total_space() * 2); ++ if( length()==total_space() ) this->resize(total_space() * 2); + fill++; + return last(); + } +@@ -62,8 +62,8 @@ + // + int size() const { return length(); } + +- typename MxBlock<T>::iterator end() { return begin()+size(); } +- typename MxBlock<T>::const_iterator end() const { return begin()+size(); } ++ typename MxBlock<T>::iterator end() { return this->begin()+size(); } ++ typename MxBlock<T>::const_iterator end() const { return this->begin()+size(); } + + void push_back(const T& t) { add(t); } + }; |