Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-11-26 10:21:12 +0100
committerMartin Hořeňovský2020-11-26 10:21:12 +0100
commitbfe5553416609372655e76bc8849d2c6ce4c2705 (patch)
tree1d1607b5008d3c7cb81c622449cf2b9f6a194410
parentc673db7a4ec250fd41a8f19a7dd0b0dbf0608dd2 (diff)
downloadcatch3-bfe5553416609372655e76bc8849d2c6ce4c2705.tar.gz
CumulativeReporterBase doesn't use shared_ptrs for sectionStack
-rw-r--r--src/catch2/reporters/catch_reporter_cumulative_base.cpp2
-rw-r--r--src/catch2/reporters/catch_reporter_cumulative_base.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/reporters/catch_reporter_cumulative_base.cpp b/src/catch2/reporters/catch_reporter_cumulative_base.cpp
index 67154d95..5a25ab9b 100644
--- a/src/catch2/reporters/catch_reporter_cumulative_base.cpp
+++ b/src/catch2/reporters/catch_reporter_cumulative_base.cpp
@@ -57,7 +57,7 @@ namespace Catch {
}
m_deepestSection = node.get();
- m_sectionStack.push_back( std::move(node) );
+ m_sectionStack.push_back( node.get() );
}
bool CumulativeReporterBase::assertionEnded(
diff --git a/src/catch2/reporters/catch_reporter_cumulative_base.hpp b/src/catch2/reporters/catch_reporter_cumulative_base.hpp
index 94b4c589..7f228420 100644
--- a/src/catch2/reporters/catch_reporter_cumulative_base.hpp
+++ b/src/catch2/reporters/catch_reporter_cumulative_base.hpp
@@ -80,7 +80,7 @@ namespace Catch {
std::shared_ptr<SectionNode> m_rootSection;
SectionNode* m_deepestSection = nullptr;
- std::vector<std::shared_ptr<SectionNode>> m_sectionStack;
+ std::vector<SectionNode*> m_sectionStack;
};
} // end namespace Catch