| 410 | } |
| 411 | |
| 412 | boost::optional<WorkspaceObject> Workspace_Impl::getObjectByNameAndReference(const std::string& name, |
| 413 | const std::vector<std::string>& referenceNames) const { |
| 414 | for (const WorkspaceObject& object : getObjectsByReference(referenceNames)) { |
| 415 | OptionalString candidate = object.name(); |
| 416 | if (candidate && istringEqual(*candidate, name)) { |
| 417 | return object; |
| 418 | } |
| 419 | } |
| 420 | return boost::none; |
| 421 | } |
| 422 | |
| 423 | bool Workspace_Impl::fastNaming() const { |
| 424 | return m_fastNaming; |
no test coverage detected