forked from catchorg/Catch2
Devirtualize ITracker::parent
This commit is contained in:
@@ -84,9 +84,8 @@ namespace TestCaseTracking {
|
||||
|
||||
|
||||
TrackerBase::TrackerBase( NameAndLocation const& nameAndLocation, TrackerContext& ctx, ITracker* parent ):
|
||||
ITracker(nameAndLocation),
|
||||
m_ctx( ctx ),
|
||||
m_parent( parent )
|
||||
ITracker(nameAndLocation, parent),
|
||||
m_ctx( ctx )
|
||||
{}
|
||||
|
||||
bool TrackerBase::isComplete() const {
|
||||
@@ -99,11 +98,6 @@ namespace TestCaseTracking {
|
||||
return m_runState != NotStarted && !isComplete();
|
||||
}
|
||||
|
||||
ITracker* TrackerBase::parent() {
|
||||
assert( m_parent ); // Should always be non-null except for root
|
||||
return m_parent;
|
||||
}
|
||||
|
||||
void TrackerBase::openChild() {
|
||||
if( m_runState != ExecutingChildren ) {
|
||||
m_runState = ExecutingChildren;
|
||||
|
||||
Reference in New Issue
Block a user