]> OCCT Git - occt.git/commitdiff
0025000: Missing implementation of method NCollection_SparseArrayBase::changeValue()
authorabv <abv@opencascade.com>
Fri, 26 Sep 2014 08:45:41 +0000 (12:45 +0400)
committerbugmaster <bugmaster@opencascade.com>
Fri, 26 Sep 2014 13:29:01 +0000 (17:29 +0400)
Method changeValue() removed from NCollection_SparseArrayBase, ChangeValue() of NCollection_SparseArray is used instead

src/NCollection/NCollection_SparseArray.hxx
src/NCollection/NCollection_SparseArrayBase.hxx

index b3ddd214c3f5093aef9f1c17098af94240e4ca43..2d50b4925c7a5df2f38197bfc270c52e63a422df 100644 (file)
@@ -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
index 588cfa83f2fe565b24d7dd54f0b35f9e07f83cc4..8bd0a290e8bd175c9cffcb4efe25570f042975b4 100644 (file)
@@ -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);