summaryrefslogtreecommitdiff
path: root/textproc/xerces-c/patches/patch-ax
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/xerces-c/patches/patch-ax')
-rw-r--r--textproc/xerces-c/patches/patch-ax171
1 files changed, 0 insertions, 171 deletions
diff --git a/textproc/xerces-c/patches/patch-ax b/textproc/xerces-c/patches/patch-ax
deleted file mode 100644
index a5cef1208a7..00000000000
--- a/textproc/xerces-c/patches/patch-ax
+++ /dev/null
@@ -1,171 +0,0 @@
-$NetBSD: patch-ax,v 1.1 2005/12/31 00:56:42 joerg Exp $
-
---- util/RefArrayOf.c.orig 2005-12-31 00:39:18.000000000 +0000
-+++ util/RefArrayOf.c
-@@ -105,9 +105,9 @@ RefArrayOf<TElem>::RefArrayOf(const unsi
- , fArray(0)
- , fMemoryManager(manager)
- {
-- fArray = (TElem**) fMemoryManager->allocate(fSize * sizeof(TElem*));//new TElem*[fSize];
-- for (unsigned int index = 0; index < fSize; index++)
-- fArray[index] = 0;
-+ this->fArray = (TElem**) this->fMemoryManager->allocate(fSize * sizeof(TElem*));//new TElem*[fSize];
-+ for (unsigned int index = 0; index < this->fSize; index++)
-+ this->fArray[index] = 0;
- }
-
- template <class TElem>
-@@ -119,9 +119,9 @@ RefArrayOf<TElem>::RefArrayOf(TElem* val
- , fArray(0)
- , fMemoryManager(manager)
- {
-- fArray = (TElem**) fMemoryManager->allocate(fSize * sizeof(TElem*));//new TElem*[fSize];
-- for (unsigned int index = 0; index < fSize; index++)
-- fArray[index] = values[index];
-+ this->fArray = (TElem**) this->fMemoryManager->allocate(this->fSize * sizeof(TElem*));//new TElem*[fSize];
-+ for (unsigned int index = 0; index < this->fSize; index++)
-+ this->fArray[index] = values[index];
- }
-
- template <class TElem> RefArrayOf<TElem>::
-@@ -131,14 +131,14 @@ RefArrayOf(const RefArrayOf<TElem>& sour
- , fArray(0)
- , fMemoryManager(source.fMemoryManager)
- {
-- fArray = (TElem**) fMemoryManager->allocate(fSize * sizeof(TElem*));//new TElem*[fSize];
-- for (unsigned int index = 0; index < fSize; index++)
-- fArray[index] = source.fArray[index];
-+ this->fArray = (TElem**) this->fMemoryManager->allocate(fSize * sizeof(TElem*));//new TElem*[fSize];
-+ for (unsigned int index = 0; index < this->fSize; index++)
-+ this->fArray[index] = source.fArray[index];
- }
-
- template <class TElem> RefArrayOf<TElem>::~RefArrayOf()
- {
-- fMemoryManager->deallocate(fArray);//delete [] fArray;
-+ this->fMemoryManager->deallocate(this->fArray);//delete [] fArray;
- }
-
-
-@@ -148,9 +148,9 @@ template <class TElem> RefArrayOf<TElem>
- template <class TElem> TElem*& RefArrayOf<TElem>::
- operator[](const unsigned int index)
- {
-- if (index >= fSize)
-+ if (index >= this->fSize)
- ThrowXML(ArrayIndexOutOfBoundsException, XMLExcepts::Array_BadIndex);
-- return fArray[index];
-+ return this->fArray[index];
- }
-
- template <class TElem> const TElem* RefArrayOf<TElem>::
-@@ -158,7 +158,7 @@ operator[](const unsigned int index) con
- {
- if (index >= fSize)
- ThrowXML(ArrayIndexOutOfBoundsException, XMLExcepts::Array_BadIndex);
-- return fArray[index];
-+ return this->fArray[index];
- }
-
- template <class TElem> RefArrayOf<TElem>& RefArrayOf<TElem>::
-@@ -170,14 +170,14 @@ operator=(const RefArrayOf<TElem>& toAss
- // Reallocate if not the same size
- if (toAssign.fSize != fSize)
- {
-- fMemoryManager->deallocate(fArray);//delete [] fArray;
-- fSize = toAssign.fSize;
-- fArray = (TElem**) fMemoryManager->allocate(fSize * sizeof(TElem*));//new TElem*[fSize];
-+ this->fMemoryManager->deallocate(this->fArray);//delete [] fArray;
-+ this->fSize = toAssign.fSize;
-+ this->fArray = (TElem**) this->fMemoryManager->allocate(this->fSize * sizeof(TElem*));//new TElem*[fSize];
- }
-
- // Copy over the source elements
- for (unsigned int index = 0; index < fSize; index++)
-- fArray[index] = toAssign.fArray[index];
-+ this->fArray[index] = toAssign.fArray[index];
-
- return *this;
- }
-@@ -248,16 +248,16 @@ template <class TElem> void RefArrayOf<T
- if (index >= fSize)
- ThrowXML(ArrayIndexOutOfBoundsException, XMLExcepts::Array_BadIndex);
-
-- delete fArray[index];
-- fArray[index] = 0;
-+ delete this->fArray[index];
-+ this->fArray[index] = 0;
- }
-
- template <class TElem> void RefArrayOf<TElem>::deleteAllElements()
- {
-- for (unsigned int index = 0; index < fSize; index++)
-+ for (unsigned int index = 0; index < this->fSize; index++)
- {
- delete fArray[index];
-- fArray[index] = 0;
-+ this->fArray[index] = 0;
- }
- }
-
-@@ -270,7 +270,7 @@ template <class TElem> void RefArrayOf<T
- ThrowXML(IllegalArgumentException, XMLExcepts::Array_BadNewSize);
-
- // Allocate the new array
-- TElem** newArray = (TElem**) fMemoryManager->allocate
-+ TElem** newArray = (TElem**) this->fMemoryManager->allocate
- (
- newSize * sizeof(TElem*)
- );//new TElem*[newSize];
-@@ -278,15 +278,15 @@ template <class TElem> void RefArrayOf<T
- // Copy the existing values
- unsigned int index = 0;
- for (; index < fSize; index++)
-- newArray[index] = fArray[index];
-+ newArray[index] = this->fArray[index];
-
- for (; index < newSize; index++)
- newArray[index] = 0;
-
- // Delete the old array and udpate our members
-- fMemoryManager->deallocate(fArray);//delete [] fArray;
-- fArray = newArray;
-- fSize = newSize;
-+ this->fMemoryManager->deallocate(fArray);//delete [] fArray;
-+ this->fArray = newArray;
-+ this->fSize = newSize;
- }
-
-
-@@ -307,7 +307,7 @@ RefArrayEnumerator( RefArrayOf<T
- template <class TElem> RefArrayEnumerator<TElem>::~RefArrayEnumerator()
- {
- if (fAdopted)
-- delete fToEnum;
-+ delete this->fToEnum;
- }
-
-
-@@ -316,19 +316,19 @@ template <class TElem> RefArrayEnumerato
- // ---------------------------------------------------------------------------
- template <class TElem> bool RefArrayEnumerator<TElem>::hasMoreElements() const
- {
-- if (fCurIndex >= fToEnum->length())
-+ if (fCurIndex >= this->fToEnum->length())
- return false;
- return true;
- }
-
- template <class TElem> TElem& RefArrayEnumerator<TElem>::nextElement()
- {
-- return *(*fToEnum)[fCurIndex++];
-+ return *(*this->fToEnum)[this->fCurIndex++];
- }
-
- template <class TElem> void RefArrayEnumerator<TElem>::Reset()
- {
-- fCurIndex = 0;
-+ this->fCurIndex = 0;
- }
-
- XERCES_CPP_NAMESPACE_END