diff options
| author | Martin Hořeňovský | 2023-03-13 00:03:48 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-03-22 23:58:44 +0100 |
| commit | d0f70fdfd661b50c1b8721ae70d49656dc68929b (patch) | |
| tree | 04945f8cd0b93afe4fb345e9e942ad1f6028b2f9 /src/catch2/internal/catch_list.cpp | |
| parent | 4f4ad8ada9d17292bb7435043b5453457a24a016 (diff) | |
| download | catch3-d0f70fdfd661b50c1b8721ae70d49656dc68929b.tar.gz | |
Unify IReporterRegistry and ReporterRegistry
To keep the compilation firewall effect, the implementations
are hidden behind a PIMPL. In this case it is probably not
worth it, but we can inline it later if needed.
Diffstat (limited to 'src/catch2/internal/catch_list.cpp')
| -rw-r--r-- | src/catch2/internal/catch_list.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/internal/catch_list.cpp b/src/catch2/internal/catch_list.cpp index 263781d6..4eb8bb7d 100644 --- a/src/catch2/internal/catch_list.cpp +++ b/src/catch2/internal/catch_list.cpp @@ -9,9 +9,9 @@ #include <catch2/interfaces/catch_interfaces_registry_hub.hpp> #include <catch2/interfaces/catch_interfaces_reporter.hpp> -#include <catch2/interfaces/catch_interfaces_reporter_registry.hpp> #include <catch2/interfaces/catch_interfaces_testcase.hpp> #include <catch2/interfaces/catch_interfaces_reporter_factory.hpp> +#include <catch2/internal/catch_reporter_registry.hpp> #include <catch2/internal/catch_move_and_forward.hpp> #include <catch2/internal/catch_case_insensitive_comparisons.hpp> @@ -54,7 +54,7 @@ namespace Catch { void listReporters(IEventListener& reporter) { std::vector<ReporterDescription> descriptions; - IReporterRegistry::FactoryMap const& factories = getRegistryHub().getReporterRegistry().getFactories(); + auto const& factories = getRegistryHub().getReporterRegistry().getFactories(); descriptions.reserve(factories.size()); for (auto const& fac : factories) { descriptions.push_back({ fac.first, fac.second->getDescription() }); |