Data model delete method implemented. 34/2934/2
Manuel Juliachs [Mon, 17 Jan 2011 14:30:12 +0000 (15:30 +0100)]
Change-Id: If45f42a24a19702cb36703bfbef23e1f4f811e4f

scilab/modules/graphic_objects/includes/DataModel.hxx
scilab/modules/graphic_objects/src/cpp/dataModel.cpp

index e7308fc..add8ee0 100644 (file)
@@ -79,7 +79,6 @@ public :
 
     /**
      * Deletes a data object
-     * To be implemented
      */
     void deleteDataObject(char* _pstID);
 
index 8d80aa3..3e0f9e6 100644 (file)
@@ -103,9 +103,8 @@ char* DataModel::createDataObject(char* _pstID, char* _sType)
     return _pstID;
 }
 
-/* To be implemented */
 void DataModel::deleteDataObject(char* _pstID)
 {
-
+    m_dataMap->erase(std::string(_pstID));
 }