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

summaryrefslogtreecommitdiffhomepage
path: root/src/catch2/interfaces
diff options
context:
space:
mode:
authorMartin Hořeňovský2025-08-26 12:36:06 +0200
committerMartin Hořeňovský2025-08-26 12:37:52 +0200
commit227af796b4ede6258f9b1ff8b69cd1f03d32f662 (patch)
treecfffe971cbc8d28b4de33c3f87bd590050c679dd /src/catch2/interfaces
parent33adb4c779feaa3a98bb45ec1ebaf2864bb110b7 (diff)
downloadcatch3-227af796b4ede6258f9b1ff8b69cd1f03d32f662.tar.gz
Move MessageInfos into the run context
Together with the previous change, this means that `ScopedMessage` only needs to keep around a single unsigned int.
Diffstat (limited to 'src/catch2/interfaces')
-rw-r--r--src/catch2/interfaces/catch_interfaces_capture.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/catch2/interfaces/catch_interfaces_capture.hpp b/src/catch2/interfaces/catch_interfaces_capture.hpp
index 64f906a5..b4fee6cd 100644
--- a/src/catch2/interfaces/catch_interfaces_capture.hpp
+++ b/src/catch2/interfaces/catch_interfaces_capture.hpp
@@ -62,7 +62,7 @@ namespace Catch {
virtual void benchmarkEnded( BenchmarkStats<> const& stats ) = 0;
virtual void benchmarkFailed( StringRef error ) = 0;
- virtual void pushScopedMessage( MessageInfo const& message ) = 0;
+ virtual void pushScopedMessage( MessageInfo&& message ) = 0;
virtual void popScopedMessage( unsigned int messageId ) = 0;
virtual void emplaceUnscopedMessage( MessageBuilder&& builder ) = 0;