From: abv Date: Fri, 26 Sep 2014 08:45:41 +0000 (+0400) Subject: 0025000: Missing implementation of method NCollection_SparseArrayBase::changeValue() X-Git-Tag: V6_8_0_beta~58 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=8e8070c47dca7bf932ec8b39c9a6a5f82dc12b68;p=occt.git 0025000: Missing implementation of method NCollection_SparseArrayBase::changeValue() Method changeValue() removed from NCollection_SparseArrayBase, ChangeValue() of NCollection_SparseArray is used instead --- diff --git a/src/NCollection/NCollection_SparseArray.hxx b/src/NCollection/NCollection_SparseArray.hxx index b3ddd214c3..2d50b4925c 100644 --- a/src/NCollection/NCollection_SparseArray.hxx +++ b/src/NCollection/NCollection_SparseArray.hxx @@ -131,14 +131,13 @@ public: //! Direct const access to the item const TheItemType& Find (const Standard_Size theIndex) const { - return *(TheItemType*)this->getValue(theIndex); + return Value(theIndex); } - //! Modification access to the item; allocates space if - //! necessary and marks the item as defined + //! Modification access to the item TheItemType& ChangeFind (const Standard_Size theIndex) { - return *(TheItemType*)(this->changeValue (theIndex)); + return ChangeValue(theIndex); } //! Set a value as explicit method diff --git a/src/NCollection/NCollection_SparseArrayBase.hxx b/src/NCollection/NCollection_SparseArrayBase.hxx index 588cfa83f2..8bd0a290e8 100644 --- a/src/NCollection/NCollection_SparseArrayBase.hxx +++ b/src/NCollection/NCollection_SparseArrayBase.hxx @@ -237,10 +237,6 @@ protected: Standard_EXPORT Standard_Address setValue (const Standard_Size theIndex, const Standard_Address theValue); - //! Modification access to the item; allocates necessary space - //! and marks the item as defined - Standard_EXPORT Standard_Address changeValue (const Standard_Size theIndex); - //! Copy contents of theOther to this; //! assumes that this and theOther have exactly the same type of arguments Standard_EXPORT void assign (const NCollection_SparseArrayBase& theOther);