mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-10-31 18:48:11 +08:00 
			
		
		
		
	Add ref for sliders. (#457)
This resolves: https://github.com/ArthurSonzogni/FTXUI/issues/456
This commit is contained in:
		| @@ -66,6 +66,9 @@ class ConstStringRef { | ||||
|   ConstStringRef(const wchar_t* ref) : ConstStringRef(std::wstring(ref)) {} | ||||
|   ConstStringRef(const char* ref) | ||||
|       : ConstStringRef(to_wstring(std::string(ref))) {} | ||||
|   const std::string& operator()() const { | ||||
|     return address_ ? *address_ : owned_; | ||||
|   } | ||||
|   const std::string& operator*() const { return address_ ? *address_ : owned_; } | ||||
|   const std::string* operator->() const { | ||||
|     return address_ ? address_ : &owned_; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Arthur Sonzogni
					Arthur Sonzogni