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 {