mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-11-04 05:59:32 +01:00 
			
		
		
		
	CumulativeReporterBase doesn't use shared_ptrs for sectionStack
This commit is contained in:
		@@ -57,7 +57,7 @@ namespace Catch {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        m_deepestSection = node.get();
 | 
					        m_deepestSection = node.get();
 | 
				
			||||||
        m_sectionStack.push_back( std::move(node) );
 | 
					        m_sectionStack.push_back( node.get() );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    bool CumulativeReporterBase::assertionEnded(
 | 
					    bool CumulativeReporterBase::assertionEnded(
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -80,7 +80,7 @@ namespace Catch {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        std::shared_ptr<SectionNode> m_rootSection;
 | 
					        std::shared_ptr<SectionNode> m_rootSection;
 | 
				
			||||||
        SectionNode* m_deepestSection = nullptr;
 | 
					        SectionNode* m_deepestSection = nullptr;
 | 
				
			||||||
        std::vector<std::shared_ptr<SectionNode>> m_sectionStack;
 | 
					        std::vector<SectionNode*> m_sectionStack;
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
} // end namespace Catch
 | 
					} // end namespace Catch
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user