Commit a7909ab9 authored by unknown's avatar unknown

Merge mysql.com:/home/jonas/src/mysql-4.1

into mysql.com:/home/jonas/src/gcc34

parents d760bfd6 21b6aa5c
...@@ -795,8 +795,8 @@ inline ...@@ -795,8 +795,8 @@ inline
void void
UnsafeArrayPool<T>::getPtrForce(Ptr<T> & ptr){ UnsafeArrayPool<T>::getPtrForce(Ptr<T> & ptr){
Uint32 i = ptr.i; Uint32 i = ptr.i;
if(i < size){ if(i < this->size){
ptr.p = &theArray[i]; ptr.p = &this->theArray[i];
} else { } else {
ErrorReporter::handleAssert("UnsafeArrayPool<T>::getPtr", ErrorReporter::handleAssert("UnsafeArrayPool<T>::getPtr",
__FILE__, __LINE__); __FILE__, __LINE__);
...@@ -808,8 +808,8 @@ inline ...@@ -808,8 +808,8 @@ inline
void void
UnsafeArrayPool<T>::getPtrForce(ConstPtr<T> & ptr) const{ UnsafeArrayPool<T>::getPtrForce(ConstPtr<T> & ptr) const{
Uint32 i = ptr.i; Uint32 i = ptr.i;
if(i < size){ if(i < this->size){
ptr.p = &theArray[i]; ptr.p = &this->theArray[i];
} else { } else {
ErrorReporter::handleAssert("UnsafeArrayPool<T>::getPtr", ErrorReporter::handleAssert("UnsafeArrayPool<T>::getPtr",
__FILE__, __LINE__); __FILE__, __LINE__);
...@@ -820,8 +820,8 @@ template <class T> ...@@ -820,8 +820,8 @@ template <class T>
inline inline
T * T *
UnsafeArrayPool<T>::getPtrForce(Uint32 i){ UnsafeArrayPool<T>::getPtrForce(Uint32 i){
if(i < size){ if(i < this->size){
return &theArray[i]; return &this->theArray[i];
} else { } else {
ErrorReporter::handleAssert("UnsafeArrayPool<T>::getPtr", ErrorReporter::handleAssert("UnsafeArrayPool<T>::getPtr",
__FILE__, __LINE__); __FILE__, __LINE__);
...@@ -833,8 +833,8 @@ template <class T> ...@@ -833,8 +833,8 @@ template <class T>
inline inline
const T * const T *
UnsafeArrayPool<T>::getConstPtrForce(Uint32 i) const { UnsafeArrayPool<T>::getConstPtrForce(Uint32 i) const {
if(i < size){ if(i < this->size){
return &theArray[i]; return &this->theArray[i];
} else { } else {
ErrorReporter::handleAssert("UnsafeArrayPool<T>::getPtr", ErrorReporter::handleAssert("UnsafeArrayPool<T>::getPtr",
__FILE__, __LINE__); __FILE__, __LINE__);
...@@ -847,8 +847,8 @@ inline ...@@ -847,8 +847,8 @@ inline
void void
UnsafeArrayPool<T>::getPtrForce(Ptr<T> & ptr, Uint32 i){ UnsafeArrayPool<T>::getPtrForce(Ptr<T> & ptr, Uint32 i){
ptr.i = i; ptr.i = i;
if(i < size){ if(i < this->size){
ptr.p = &theArray[i]; ptr.p = &this->theArray[i];
return ; return ;
} else { } else {
ErrorReporter::handleAssert("UnsafeArrayPool<T>::getPtr", ErrorReporter::handleAssert("UnsafeArrayPool<T>::getPtr",
...@@ -861,8 +861,8 @@ inline ...@@ -861,8 +861,8 @@ inline
void void
UnsafeArrayPool<T>::getPtrForce(ConstPtr<T> & ptr, Uint32 i) const{ UnsafeArrayPool<T>::getPtrForce(ConstPtr<T> & ptr, Uint32 i) const{
ptr.i = i; ptr.i = i;
if(i < size){ if(i < this->size){
ptr.p = &theArray[i]; ptr.p = &this->theArray[i];
return ; return ;
} else { } else {
ErrorReporter::handleAssert("UnsafeArrayPool<T>::getPtr", ErrorReporter::handleAssert("UnsafeArrayPool<T>::getPtr",
......
...@@ -153,11 +153,11 @@ public: ...@@ -153,11 +153,11 @@ public:
LocalDLFifoList(ArrayPool<T> & thePool, typename DLFifoList<T>::Head & _src) LocalDLFifoList(ArrayPool<T> & thePool, typename DLFifoList<T>::Head & _src)
: DLFifoList<T>(thePool), src(_src) : DLFifoList<T>(thePool), src(_src)
{ {
head = src; this->head = src;
} }
~LocalDLFifoList(){ ~LocalDLFifoList(){
src = head; src = this->head;
} }
private: private:
typename DLFifoList<T>::Head & src; typename DLFifoList<T>::Head & src;
......
...@@ -169,11 +169,11 @@ public: ...@@ -169,11 +169,11 @@ public:
LocalDLList(ArrayPool<T> & thePool, typename DLList<T>::Head & _src) LocalDLList(ArrayPool<T> & thePool, typename DLList<T>::Head & _src)
: DLList<T>(thePool), src(_src) : DLList<T>(thePool), src(_src)
{ {
head = src; this->head = src;
} }
~LocalDLList(){ ~LocalDLList(){
src = head; src = this->head;
} }
private: private:
typename DLList<T>::Head & src; typename DLList<T>::Head & src;
......
...@@ -174,11 +174,11 @@ public: ...@@ -174,11 +174,11 @@ public:
typename DataBuffer<sz>::Head & _src) typename DataBuffer<sz>::Head & _src)
: DataBuffer<sz>(thePool), src(_src) : DataBuffer<sz>(thePool), src(_src)
{ {
head = src; this->head = src;
} }
~LocalDataBuffer(){ ~LocalDataBuffer(){
src = head; src = this->head;
} }
private: private:
typename DataBuffer<sz>::Head & src; typename DataBuffer<sz>::Head & src;
......
...@@ -137,11 +137,11 @@ public: ...@@ -137,11 +137,11 @@ public:
LocalSLList(ArrayPool<T> & thePool, typename SLList<T>::Head & _src) LocalSLList(ArrayPool<T> & thePool, typename SLList<T>::Head & _src)
: SLList<T>(thePool), src(_src) : SLList<T>(thePool), src(_src)
{ {
head = src; this->head = src;
} }
~LocalSLList(){ ~LocalSLList(){
src = head; src = this->head;
} }
private: private:
typename SLList<T>::Head & src; typename SLList<T>::Head & src;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment