From 57e9fb33d223cfad83897742cd19e90bb0ecbae7 Mon Sep 17 00:00:00 2001 From: Thad House Date: Thu, 15 Feb 2018 23:00:46 -0800 Subject: [PATCH] Fixes C++ SendableChooser using invalid temp variable (#945) --- .../src/main/native/include/SmartDashboard/SendableChooser.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }