Use hasMessage() instead of getMessage().empty()

This commit is contained in:
Martin Hořeňovský 2023-03-11 21:27:11 +01:00
parent 13fae1e2ff
commit 3a1ef14097
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
2 changed files with 2 additions and 2 deletions

View File

@ -295,7 +295,7 @@ namespace Catch {
}
}
if( !result.getMessage().empty() )
if( !result.hasMessage() )
rss << result.getMessage() << '\n';
for( auto const& msg : stats.infoMessages )
if( msg.type == ResultWas::Info )

View File

@ -147,7 +147,7 @@ namespace Catch {
}
}
if (!result.getMessage().empty())
if (!result.hasMessage())
textRss << result.getMessage() << '\n';
for (auto const& msg : stats.infoMessages)