From d6c1968192b41e1582bfaad3511360f24e316c8b Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 23 Nov 2024 00:46:40 +0100 Subject: [PATCH] test --- test/tests/RideRatings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/tests/RideRatings.cpp b/test/tests/RideRatings.cpp index 786c35345a25..23488962679d 100644 --- a/test/tests/RideRatings.cpp +++ b/test/tests/RideRatings.cpp @@ -47,7 +47,7 @@ class RideRatings : public testing::Test std::string FormatRatings(const Ride& ride) { RatingTuple ratings = ride.ratings; - std::string name = ride.GetRideTypeDescriptor().Name; + auto name = std::string(ride.GetRideTypeDescriptor().Name); std::string line = String::StdFormat( "%s: (%d, %d, %d)", name.c_str(), static_cast(ratings.excitement), static_cast(ratings.intensity), static_cast(ratings.nausea));