| 3850 | } |
| 3851 | |
| 3852 | DocumentObject* Document::getObjectByID(const long id) const |
| 3853 | { |
| 3854 | const auto it = d->objectIdMap.find(id); |
| 3855 | |
| 3856 | return it != d->objectIdMap.end() ?it->second:nullptr; |
| 3857 | } |
| 3858 | |
| 3859 | |
| 3860 | // Note: This method is only used in Tree.cpp slotChangeObject(), see explanation there |
no test coverage detected