| 723 | } |
| 724 | |
| 725 | Document* Application::getDocument(const char *Name) const |
| 726 | { |
| 727 | |
| 728 | const auto pos = DocMap.find(Name); |
| 729 | |
| 730 | if (pos == DocMap.end()) |
| 731 | return nullptr; |
| 732 | |
| 733 | return pos->second; |
| 734 | } |
| 735 | Document* Application::getDocumentOrActive(const char *Name) const |
| 736 | { |
| 737 | if (!Base::Tools::isNullOrEmpty(Name)) { |
no test coverage detected