diff --git a/wpilibc/src/main/native/include/SmartDashboard/SendableChooser.inc b/wpilibc/src/main/native/include/SmartDashboard/SendableChooser.inc index f46266f5f8..f68a996a1e 100644 --- a/wpilibc/src/main/native/include/SmartDashboard/SendableChooser.inc +++ b/wpilibc/src/main/native/include/SmartDashboard/SendableChooser.inc @@ -62,7 +62,7 @@ void SendableChooser::AddDefault(llvm::StringRef name, T object) { template auto SendableChooser::GetSelected() -> decltype(_unwrap_smart_ptr(m_choices[""])) { - llvm::StringRef selected = m_defaultChoice; + std::string selected = m_defaultChoice; if (m_selectedEntry) { selected = m_selectedEntry.GetString(m_defaultChoice); }