From 0d88d6c36ea9f0857cc4866aa15a7303c8d52982 Mon Sep 17 00:00:00 2001 From: Brendan Raykoff <99614905+Braykoff@users.noreply.github.com> Date: Mon, 30 Dec 2024 17:21:42 -0500 Subject: [PATCH] Switch string_view to string (2/2) Co-authored-by: Peter Johnson --- .../main/native/include/frc/smartdashboard/SendableChooser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wpilibc/src/main/native/include/frc/smartdashboard/SendableChooser.h b/wpilibc/src/main/native/include/frc/smartdashboard/SendableChooser.h index ec34ecd3171..bf7fff55630 100644 --- a/wpilibc/src/main/native/include/frc/smartdashboard/SendableChooser.h +++ b/wpilibc/src/main/native/include/frc/smartdashboard/SendableChooser.h @@ -95,7 +95,7 @@ class SendableChooser : public SendableChooserBase { * @return The option selected */ CopyType GetSelected() const { - std::string_view selected = GetSelectedName(); + std::string selected = GetSelectedName(); if (selected.empty()) { return CopyType{}; } else {