mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 11:43:29 +01:00
Inline MessageBuilder's constructor
This commit is contained in:
parent
0a89e7f0c4
commit
074017f5ad
@ -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 ) {
|
||||||
|
@ -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 ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user