Pre-condition: Object sourceHandle points to this object from field index. Post-condition: That information is removed from this object's m_targetData (in preparation for a change to the source pointer).
| 1017 | // Post-condition: That information is removed from this object's m_targetData (in preparation for |
| 1018 | // a change to the source pointer). |
| 1019 | void WorkspaceObject_Impl::nullifyReversePointer(const Handle& sourceHandle, unsigned index) { |
| 1020 | OS_ASSERT(!m_handle.isNull()); |
| 1021 | OS_ASSERT(m_targetData); |
| 1022 | auto it = m_targetData->reversePointers.find(ReversePointer(sourceHandle, index)); |
| 1023 | OS_ASSERT(it != m_targetData->reversePointers.end()); |
| 1024 | m_targetData->reversePointers.erase(it); |
| 1025 | } |
| 1026 | |
| 1027 | // Pre-condition: ReversePointer(sourceHandle,index) is not in m_targetData. |
| 1028 | // Post-condition: m_targetData indicates that object sourceHandle points to this object from |
no test coverage detected