mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 13:26:10 +01:00
Replaced use of dynamic_cast with static_cast.
It wasn't necessary anyway. This addresses #821
This commit is contained in:
parent
d890791800
commit
9a3486a705
@ -98,7 +98,8 @@ namespace Catch {
|
|||||||
|
|
||||||
do {
|
do {
|
||||||
ITracker& rootTracker = m_trackerContext.startRun();
|
ITracker& rootTracker = m_trackerContext.startRun();
|
||||||
dynamic_cast<SectionTracker&>( rootTracker ).addInitialFilters( m_config->getSectionsToRun() );
|
assert( rootTracker.isSectionTracker() );
|
||||||
|
static_cast<SectionTracker&>( rootTracker ).addInitialFilters( m_config->getSectionsToRun() );
|
||||||
do {
|
do {
|
||||||
m_trackerContext.startCycle();
|
m_trackerContext.startCycle();
|
||||||
m_testCaseTracker = &SectionTracker::acquire( m_trackerContext, TestCaseTracking::NameAndLocation( testInfo.name, testInfo.lineInfo ) );
|
m_testCaseTracker = &SectionTracker::acquire( m_trackerContext, TestCaseTracking::NameAndLocation( testInfo.name, testInfo.lineInfo ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user