ports/graphics/qslim/files/patch-mixkit__src__MxDynBlock.h
Martin Wilke 92f330d019 - Fix build with clang
PR:		179225
Submitted by:	Ports Fury
2013-06-04 10:03:18 +00:00

29 lines
837 B
C

--- 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); }
};