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-11 21:27:11 +0100
committerMartin Hořeňovský2023-03-11 21:27:11 +0100
commit3a1ef1409750ac2840d235409f539a73a886937b (patch)
treeafe339968a8668e1a70bd9635bb51d5f1d2f6582 /src
parent13fae1e2ff9939d03bb8a5a6f3341538d4127dc5 (diff)
downloadcatch3-3a1ef1409750ac2840d235409f539a73a886937b.tar.gz
Use hasMessage() instead of getMessage().empty()
Diffstat (limited to 'src')
-rw-r--r--src/catch2/reporters/catch_reporter_junit.cpp2
-rw-r--r--src/catch2/reporters/catch_reporter_sonarqube.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/catch2/reporters/catch_reporter_junit.cpp b/src/catch2/reporters/catch_reporter_junit.cpp
index 9a9b94af..e7f17342 100644
--- a/src/catch2/reporters/catch_reporter_junit.cpp
+++ b/src/catch2/reporters/catch_reporter_junit.cpp
@@ -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 )
diff --git a/src/catch2/reporters/catch_reporter_sonarqube.cpp b/src/catch2/reporters/catch_reporter_sonarqube.cpp
index dd002b61..dc3f8c82 100644
--- a/src/catch2/reporters/catch_reporter_sonarqube.cpp
+++ b/src/catch2/reporters/catch_reporter_sonarqube.cpp
@@ -147,7 +147,7 @@ namespace Catch {
}
}
- if (!result.getMessage().empty())
+ if (!result.hasMessage())
textRss << result.getMessage() << '\n';
for (auto const& msg : stats.infoMessages)