1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-06 18:26:22 +03:00

0025000: Missing implementation of method NCollection_SparseArrayBase::changeValue()

Method changeValue() removed from NCollection_SparseArrayBase, ChangeValue() of NCollection_SparseArray is used instead
This commit is contained in:
abv 2014-09-26 12:45:41 +04:00 committed by bugmaster
parent 59427cbc91
commit 8e8070c47d
2 changed files with 3 additions and 8 deletions

View File

@ -131,14 +131,13 @@ public:
//! Direct const access to the item //! Direct const access to the item
const TheItemType& Find (const Standard_Size theIndex) const const TheItemType& Find (const Standard_Size theIndex) const
{ {
return *(TheItemType*)this->getValue(theIndex); return Value(theIndex);
} }
//! Modification access to the item; allocates space if //! Modification access to the item
//! necessary and marks the item as defined
TheItemType& ChangeFind (const Standard_Size theIndex) TheItemType& ChangeFind (const Standard_Size theIndex)
{ {
return *(TheItemType*)(this->changeValue (theIndex)); return ChangeValue(theIndex);
} }
//! Set a value as explicit method //! Set a value as explicit method

View File

@ -237,10 +237,6 @@ protected:
Standard_EXPORT Standard_Address setValue (const Standard_Size theIndex, Standard_EXPORT Standard_Address setValue (const Standard_Size theIndex,
const Standard_Address theValue); 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; //! Copy contents of theOther to this;
//! assumes that this and theOther have exactly the same type of arguments //! assumes that this and theOther have exactly the same type of arguments
Standard_EXPORT void assign (const NCollection_SparseArrayBase& theOther); Standard_EXPORT void assign (const NCollection_SparseArrayBase& theOther);