mirror of
https://github.com/catchorg/Catch2.git
synced 2026-02-04 06:15:05 +01:00
Do not use shared_ptr<Config> when listing things
This commit is contained in:
@@ -273,11 +273,14 @@ namespace Catch {
|
||||
applyFilenamesAsTags();
|
||||
}
|
||||
|
||||
// Set up global config instance before we start calling into other functions
|
||||
getCurrentMutableContext().setConfig(m_config);
|
||||
|
||||
// Create reporter(s) so we can route listings through them
|
||||
auto reporter = makeReporter(m_config.get());
|
||||
|
||||
// Handle list request
|
||||
if (list(*reporter, m_config)) {
|
||||
if (list(*reporter, *m_config)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user