Inline MessageBuilder's constructor

This commit is contained in:
Martin Hořeňovský 2021-05-14 16:00:15 +02:00
parent 0a89e7f0c4
commit 074017f5ad
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
2 changed files with 4 additions and 9 deletions

View File

@ -17,13 +17,6 @@ namespace Catch {
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
Catch::MessageBuilder::MessageBuilder( StringRef const& macroName,
SourceLineInfo const& lineInfo,
ResultWas::OfType type )
:m_info(macroName, lineInfo, type) {}
////////////////////////////////////////////////////////////////////////////
ScopedMessage::ScopedMessage( MessageBuilder const& builder ): ScopedMessage::ScopedMessage( MessageBuilder const& builder ):
m_info( builder.m_info ) { m_info( builder.m_info ) {

View File

@ -34,9 +34,11 @@ namespace Catch {
}; };
struct MessageBuilder : MessageStream { struct MessageBuilder : MessageStream {
MessageBuilder( StringRef const& macroName, MessageBuilder( StringRef macroName,
SourceLineInfo const& lineInfo, SourceLineInfo const& lineInfo,
ResultWas::OfType type ); ResultWas::OfType type ):
m_info(macroName, lineInfo, type) {}
template<typename T> template<typename T>
MessageBuilder& operator << ( T const& value ) { MessageBuilder& operator << ( T const& value ) {