From d56e3857b6be3aa72cfbddf32a274c2f431834bc Mon Sep 17 00:00:00 2001 From: James Turner Date: Fri, 18 Sep 2020 10:14:23 +0100 Subject: [PATCH] Fix sentry setting of dist Was missing header and string conversion, oops. --- src/Main/sentryIntegration.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Main/sentryIntegration.cxx b/src/Main/sentryIntegration.cxx index 39fa71976..2a3cda173 100644 --- a/src/Main/sentryIntegration.cxx +++ b/src/Main/sentryIntegration.cxx @@ -29,6 +29,8 @@ #include
#include
+#include + using namespace std; // we don't want sentry enabled for the test suite @@ -78,7 +80,8 @@ void initSentry() sentry_options_set_release(options, "flightgear@" FLIGHTGEAR_VERSION); } - sentry_options_set_dist(options, std::to_string(JENKINS_BUILD_NUMBER)) + const auto buildString = std::to_string(JENKINS_BUILD_NUMBER); + sentry_options_set_dist(options, buildString.c_str()); SGPath dataPath = fgHomePath() / "sentry_db"; #if defined(SG_WINDOWS)