| 347 | } |
| 348 | |
| 349 | void mitk::Annotation::UnRegisterMicroservice() |
| 350 | { |
| 351 | if (m_ServiceRegistration) |
| 352 | { |
| 353 | try |
| 354 | { |
| 355 | if (m_ServiceRegistration.IsAvailable()) |
| 356 | m_ServiceRegistration.Unregister(); |
| 357 | } |
| 358 | catch (...) |
| 359 | { |
| 360 | // Best-effort cleanup. Reached e.g. when the underlying service was |
| 361 | // already torn down at process exit (Unregister throws |
| 362 | // std::logic_error("Service is unregistered")). ~Annotation is |
| 363 | // implicitly noexcept, so no exception may escape. |
| 364 | } |
| 365 | } |
| 366 | m_ServiceRegistration = 0; |
| 367 | } |
| 368 | |
| 369 | void mitk::Annotation::AnnotationModified() |
| 370 | { |
no test coverage detected