diff --git a/Modules/Core/ObjectList/include/otbObjectList.h b/Modules/Core/ObjectList/include/otbObjectList.h index 762cbfdab53b9770a9cfbe9ee285b94c74be538d..7226fd9044208c04bd76d05c743a15ccd6ea568e 100644 --- a/Modules/Core/ObjectList/include/otbObjectList.h +++ b/Modules/Core/ObjectList/include/otbObjectList.h @@ -180,7 +180,6 @@ public: void Set(ObjectPointerType element) { (*m_Iter) = element; - this->Modified(); } /** * Increment. diff --git a/Modules/Core/ObjectList/include/otbObjectList.hxx b/Modules/Core/ObjectList/include/otbObjectList.hxx index 5d871caf646e85d76c624c9278cc6370abdc716f..e16f824ff5443e683c28604c06043de1f2ca810b 100644 --- a/Modules/Core/ObjectList/include/otbObjectList.hxx +++ b/Modules/Core/ObjectList/include/otbObjectList.hxx @@ -247,7 +247,7 @@ ObjectList<TObject> ::Insert(ReverseIterator position, ObjectPointerType element) { ReverseIterator iter( - InternalContainerType::reverse_iterator( + (typename InternalContainerType::reverse_iterator)( m_InternalContainer.insert(position.GetIter().base(), element) ) );