mirror of
				https://github.com/ArthurSonzogni/FTXUI.git
				synced 2025-11-01 02:58:12 +08:00 
			
		
		
		
	Make StringRef borrow reference only when taking a pointer. (#91)
This commit is contained in:
		| @@ -21,8 +21,8 @@ int wstring_width_cjk(const std::wstring&); | ||||
| /// references toward a shared representation. | ||||
| class StringRef { | ||||
|  public: | ||||
|   StringRef(std::wstring& ref); | ||||
|   StringRef(std::wstring* ref); | ||||
|   StringRef(std::wstring ref); | ||||
|   StringRef(const wchar_t* ref); | ||||
|   StringRef(const char* ref); | ||||
|  | ||||
| @@ -38,8 +38,8 @@ class StringRef { | ||||
| /// references toward  shared representation. | ||||
| class ConstStringRef { | ||||
|  public: | ||||
|   ConstStringRef(const std::wstring& ref); | ||||
|   ConstStringRef(const std::wstring* ref); | ||||
|   ConstStringRef(std::wstring ref); | ||||
|   ConstStringRef(const wchar_t* ref); | ||||
|   ConstStringRef(const char* ref); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Arthur Sonzogni
					Arthur Sonzogni