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

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2023-03-12 00:41:25 +0100
committerMartin Hořeňovský2023-03-12 00:41:25 +0100
commitba94278bdd0fb22e94490e5fefd65f356c37947c (patch)
tree4d56b87f597a2a72dd23722e2328c187de24b034 /src
parent8e5a4b6f706b705844665ad99bf3e59980d5b4c5 (diff)
downloadcatch3-ba94278bdd0fb22e94490e5fefd65f356c37947c.tar.gz
Inline trivial function in AssertionHandler
Diffstat (limited to 'src')
-rw-r--r--src/catch2/internal/catch_assertion_handler.cpp5
-rw-r--r--src/catch2/internal/catch_assertion_handler.hpp1
2 files changed, 1 insertions, 5 deletions
diff --git a/src/catch2/internal/catch_assertion_handler.cpp b/src/catch2/internal/catch_assertion_handler.cpp
index 0b14e0bb..b2accef3 100644
--- a/src/catch2/internal/catch_assertion_handler.cpp
+++ b/src/catch2/internal/catch_assertion_handler.cpp
@@ -38,7 +38,7 @@ namespace Catch {
}
void AssertionHandler::complete() {
- setCompleted();
+ m_completed = true;
if( m_reaction.shouldDebugBreak ) {
// If you find your debugger stopping you here then go one level up on the
@@ -58,9 +58,6 @@ namespace Catch {
#endif
}
}
- void AssertionHandler::setCompleted() {
- m_completed = true;
- }
void AssertionHandler::handleUnexpectedInflightException() {
m_resultCapture.handleUnexpectedInflightException( m_assertionInfo, Catch::translateActiveException(), m_reaction );
diff --git a/src/catch2/internal/catch_assertion_handler.hpp b/src/catch2/internal/catch_assertion_handler.hpp
index ae7776d8..ee7188ba 100644
--- a/src/catch2/internal/catch_assertion_handler.hpp
+++ b/src/catch2/internal/catch_assertion_handler.hpp
@@ -59,7 +59,6 @@ namespace Catch {
void handleUnexpectedInflightException();
void complete();
- void setCompleted();
// query
auto allowThrows() const -> bool;