| 126 | #include "BasicUI.h" |
| 127 | |
| 128 | std::unique_ptr<const BasicUI::WindowPlacement> |
| 129 | ProjectFramePlacement( AudacityProject *project ) |
| 130 | { |
| 131 | auto &factory = WindowPlacementFactory::Get(); |
| 132 | std::unique_ptr<const BasicUI::WindowPlacement> result; |
| 133 | if (project && factory && (result = factory(*project)).get()) |
| 134 | return result; |
| 135 | else |
| 136 | return std::make_unique<BasicUI::WindowPlacement>(); |
| 137 | } |
no test coverage detected